-
Notifications
You must be signed in to change notification settings - Fork 142
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
Add Debug scripts #1839
base: main
Are you sure you want to change the base?
Add Debug scripts #1839
Conversation
|
Benchmark Results for unmodified programs 🚀
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1839 +/- ##
=======================================
Coverage 94.83% 94.83%
=======================================
Files 101 101
Lines 39579 39579
=======================================
Hits 37536 37536
Misses 2043 2043
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CHANGELOG.md
Outdated
@@ -2,6 +2,8 @@ | |||
|
|||
#### Upcoming Changes | |||
|
|||
* docs: Add debugging scripts and documentation [#1839](https://github.com/lambdaclass/cairo-vm/pull/1839) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation and this kind of scripts that don't modify the VM doesn't need a line in the changelog
Remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I added "documentation" label to ignore the changelog check.
docs/debugging.md
Outdated
|
||
To compare the public inputs, run: | ||
```bash | ||
scripts/air_public_inputs_differ.bash file1 file2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you be a little clearer here.
Instead of file do <AIR-PUBLIC-INPUT-1
> <AIR-PUBLIC-INPUT-2
>
Try to do the same to the other commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Add debug scripts
This PR was initially inside of #1824, but I moved it to reduce the size of that PR.
Description
It adds some scripts (and documents them) for debugging differences in memory, trace, public and private air inputs.
Checklist