Skip to content

[spectec] Catch error in debugger#2110

Merged
rossberg merged 1 commit intoWebAssembly:debuggerfrom
ShinWonho:debugger
Mar 12, 2026
Merged

[spectec] Catch error in debugger#2110
rossberg merged 1 commit intoWebAssembly:debuggerfrom
ShinWonho:debugger

Conversation

@ShinWonho
Copy link
Contributor

This PR makes the debugger run before SpecTec terminates due to an error.

Previously, when an error occurred (e.g., a failed AL assertion), SpecTec immediately aborted execution.
With this change, the debugger is invoked before termination so that the program state can be inspected.

This is implemented by just catching the exception raised on failure, invoking the debugger, and then re-raising the exception preserving the original behavior.

Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@rossberg rossberg merged commit a38d35c into WebAssembly:debugger Mar 12, 2026
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.

2 participants