Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format trace to JSON format #754

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Format trace to JSON format #754

wants to merge 6 commits into from

Conversation

denismerigoux
Copy link
Contributor

Based on @rprimet's, excellent suggestion, we want to print the trace by the interpreter in a JSON format that could be exploitable by debug tools. However, the parsing of raw events to events is broken now and needs to be fixed. In the meantime, this PR prints the list of raw events on the standard output in JSON format.

@denismerigoux denismerigoux added ✨ enhancement New feature or request 🔧 compiler Issue concerns the compiler labels Dec 16, 2024
@denismerigoux denismerigoux requested a review from AltGr December 16, 2024 10:38
@rprimet
Copy link
Contributor

rprimet commented Dec 17, 2024

Note : it is possible that we are not outputting valid json yet (for instance, numbers are a footgun in json, and it seems that numbers with an unset fractional part are not accepted : e.g. 1.0 is valid but 1. isn't -- that should probably be an easy fix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 compiler Issue concerns the compiler ✨ enhancement New feature or request
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants