Debugger.jl
Debugger.jl copied to clipboard
How can I remove a breakpoint at a specified line number instead of by breakpoint index?
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?
Would it be possible to add a feature to remove breakpoints directly by line number?
Yes, it's possible.