delve icon indicating copy to clipboard operation
delve copied to clipboard

Allow for saving debugger state for later runs

Open nexovec opened this issue 6 months ago • 3 comments

Hi, is there a way to make the breakpoints and watchpoints and tracepoints persist across delve program runs? I am not comfortable with using runtime.Breakpoint everywhere, because I need to disable the breakpoints sometimes.

nexovec avatar Jun 18 '25 15:06 nexovec

Hey, currently there is no way to checkpoint the state of all breakpoints, etc...

Typically editors handle this pretty well, preserving breakpoints set in the editor across debugger runs, but if you're using Delve directly from the CLI we currently do not have support for this, but I am definitely not opposed to this feature.

derekparker avatar Jun 18 '25 23:06 derekparker

You think it would be possible to disable a runtime.Breakpoint() breakpoint by replacing it with a noop?

nexovec avatar Jun 19 '25 20:06 nexovec

You could by overwriting the CALL with a series of NOPs.

aarzilli avatar Jun 20 '25 05:06 aarzilli