Debugger next and empty line repeat#1096
Debugger next and empty line repeat#1096rushsteve1 wants to merge 2 commits intopest-parser:masterfrom
Conversation
Adds a new comand n(next) which will step the debugger one rule and break.
If an empty command is submitted to the debugger then the previous command, if there is one, is repeated with a message. Particularly useful with the next and continue commands. This feature is taken from GDB.
WalkthroughThe pull request introduces a new stepping mechanism for the debugger. In the library module, a new Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant C as CLI
participant D as DebuggerContext
participant T as Debugger Thread
U->>C: Input "next" command
C->>D: Call next()
D->>T: Set step_once flag to true
T->>T: Check step_once flag
T-->>C: Emit Breakpoint event
C->>C: Process event in receive()
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (19)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
In comparison to #1080 this PR is dramatically simpler, focused on minor QoL features. |
tomtau
left a comment
There was a problem hiding this comment.
What's a difference between next and continue?
|
feel free to reopen the PR (but maybe better to open a GH issue first to detail what problem it is trying to solve) |
Adds two new features to the Pest debugger
nextcommand that single-steps the debugger. Most useful after hitting a breakpoint.nextorcontinue.Summary by CodeRabbit