Debugger.jl icon indicating copy to clipboard operation
Debugger.jl copied to clipboard

How can I remove a breakpoint at a specified line number instead of by breakpoint index?

Open YooMoonMoon opened this issue 7 months ago • 1 comments

I know that breakpoints are added by line number, such as:

bp add "demo.jl":1
bp add "demo.jl":5
bp add "demo.jl":10

but they are removed by index, such as:

bp rm 1
bp rm 2
bp rm 3

Therefore, is it possible to add a feature to remove breakpoints by line number? For example:

bp rm "demo.jl":1
bp rm "demo.jl":5
bp rm "demo.jl":10

or

bp rm line 1
bp rm line 5
bp rm line 10

If breakpoints can only be removed by index, I would need to list all breakpoints and manually find the corresponding index for a given line number. This process is a bit cumbersome. Would it be possible to add a feature to remove breakpoints directly by line number?

YooMoonMoon avatar May 20 '25 09:05 YooMoonMoon

Would it be possible to add a feature to remove breakpoints directly by line number?

Yes, it's possible.

KristofferC avatar May 20 '25 10:05 KristofferC