0xMiden / 0xMiden/miden-debug

Function breakpoint matching requires unintuitive wildcard

Open
#88 0 comments 0 reactions 1 assignee Claimed by @djolertrk View on GitHub
Dominant language
Rust
Stars
1
Forks
8
Avg merge
2d 13h
Merged PRs (30d)
16

Description

Dealing with breakpoints should be improved. Currently:

- `break in entrypoint` does not work.
- `break in *entrypoint` works because real name is namespaced:
```
::"root_ns:root@1.0.0"::fibonacci::entrypoint
```
- Expected: unqualified function names should match suffixes by default.

Contributor guide

Open the contributing guide

Research direction

Look at the breakpoint command parsing and matching logic in the debugger's source code, likely in a module handling commands or breakpoints. The function names are fully qualified with namespaces like `::"root_ns:root@1.0.0"::fibonacci::entrypoint`. The fix involves adjusting the matching logic to allow unqualified function names (like `entrypoint`) to match suffixes of the fully qualified name. Start by finding where breakpoints are set and matched, then modify the matching algorithm. Test by setting a breakpoint with `break in entrypoint` on a sample program.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.