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

Add a single stepping example #728

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented May 2, 2024

Adds a small example to demonstrate single-stepping to show execution trace.

Before requesting review

  • I have reviewed the code myself

@Dentosal Dentosal added the documentation Improvements or additions to documentation label May 2, 2024
@Dentosal Dentosal self-assigned this May 2, 2024
@Dentosal Dentosal added the no changelog Skips the CI changelog check label May 2, 2024
@Dentosal Dentosal requested a review from a team May 2, 2024 19:54
}
ProgramState::VerifyPredicate(d) => {
println!("paused on debugger {d:?} (in predicate)");
t = vm.resume().expect("panicked");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I feel like we should be using unwrap in all these places that call expect. expect is meant to explain why it's expected to be Ok. In all these cases we just say that it's failing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an example, so I'm using expect to highlight that in real-world usage you're supposed to handle the errors.

@Dentosal Dentosal added this pull request to the merge queue May 3, 2024
Merged via the queue into master with commit a3f4f1e May 3, 2024
43 of 48 checks passed
@Dentosal Dentosal deleted the dento/dbg-single-stepping-example branch May 3, 2024 05:00
@xgreenx xgreenx mentioned this pull request May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation no changelog Skips the CI changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants