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

Debugger: Command prompt doesn't parse breakpoint command #1073

Closed
zaddach opened this issue Jan 30, 2025 · 0 comments
Closed

Debugger: Command prompt doesn't parse breakpoint command #1073

zaddach opened this issue Jan 30, 2025 · 0 comments
Labels

Comments

@zaddach
Copy link
Contributor

zaddach commented Jan 30, 2025

Describe the bug
I'm trying to add a breakpoint on the command prompt of the debugger using the b Rule or breakpoint Rule syntax. The debugger is responding with Unrecognized command: breakpoint Rule; use h for help.

To Reproduce

  • With the pest_debugger.exe compiled from the master branch
  • Run the debugger with a grammar and some input
  • Attempt to add a breakpoint with b Rule ("Rule" must exist as a rule in the grammar)
  • The debugger will respond with Unrecognized command: breakpoint Rule; use h for help.

Expected behavior
I'd expect the debugger to add the breakpoint to the breakpoint list (inspectable with l)

Additional context
Breakpoint commands are parsed here. I don't get how "breakpoint".starts_with("b Rule") should evaluate to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants