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

Wishlist: clearing current breakpoint

Open timholy opened this issue 9 years ago • 2 comments

It would be lovely if enable(), disable(), and remove() worked on the current breakpoint. Although those names are pretty generic, so perhaps some global thisbp could be defined?

timholy avatar Jun 09 '16 00:06 timholy

What's the current breakpoint? The breakpoint that was last hit?

Keno avatar Jun 09 '16 00:06 Keno

Yes (before you do any stepping.)

Use scenario: let's say I set a breakpoint then run some code. The breakpoint gets hit and I break into the debugger. I might want to examine a couple of local variables and then I decide I don't need that breakpoint anymore. It would be nice to be able to clear it with a single command. AFAICT currently I have to break out of Gallium to clear the breakpoint.

I should also confess that I haven't played with this a lot yet, because I've gotten segfaults pretty regularly with breakpoints. I should be more diligent about reporting them, but the fact that I so often use the debugger while altering pretty low-level stuff in base julia means I never know whether it's my own fault.

timholy avatar Jun 09 '16 00:06 timholy