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

Correctly propagate debugger state while in a contract context #879

Merged
merged 4 commits into from
Dec 7, 2024

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented Dec 5, 2024

Debugger didn't work correctly in contract contexts. This PR changes the debugger pauses to work in contracts as well.

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog (not sure if this is a breaking change?)
  • New behavior is reflected in tests (there are no tests for the debugger feature?)
  • If performance characteristic of an instruction change, update gas costs as well or make a follow-up PR for that (no changes)
  • The specification matches the implemented behavior (link update PR if changes are needed) (debugger is outside of the spec)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

@Dentosal Dentosal self-assigned this Dec 5, 2024
@Dentosal Dentosal marked this pull request as ready for review December 5, 2024 14:12
@Dentosal Dentosal requested a review from a team December 5, 2024 14:12
@Dentosal Dentosal changed the title Correctly propagate debugger state while in a contract Correctly propagate debugger state while in a contract context Dec 5, 2024
AurelienFT
AurelienFT previously approved these changes Dec 5, 2024
@@ -1037,20 +1037,18 @@ where

if in_call {
// Only reverts should terminate execution from a call context
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: The comment seems not very descriptive anymore given the changes

xgreenx
xgreenx previously approved these changes Dec 6, 2024
@AurelienFT AurelienFT dismissed stale reviews from xgreenx and themself via 66a4280 December 6, 2024 23:51
@AurelienFT AurelienFT added this pull request to the merge queue Dec 7, 2024
Merged via the queue into master with commit a80f82e Dec 7, 2024
40 checks passed
@AurelienFT AurelienFT deleted the dento/fix-contract-debug branch December 7, 2024 11:53
@AurelienFT AurelienFT mentioned this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants