delve icon indicating copy to clipboard operation
delve copied to clipboard

Allow all commands with the `on` breakpoint hook

Open sivaplaysmC opened this issue 10 months ago • 1 comments

Allowing any command to be executed on a brekpoint hit, will allow for better usage. One example i can think of is having a empty function called _debugBreak(), and whenever _debugBreak() is hit, it should automatically execute the 'next' command - effectively stopping right after _debugBreak.

I also do not see any reason as to why only a limited set of commands can be executed when a breakpoint is hit.

sivaplaysmC avatar Mar 12 '25 17:03 sivaplaysmC

allow python script might be good. https://lldb.llvm.org/use/python.html

Lslightly avatar Mar 14 '25 02:03 Lslightly

This is effectively implemented by #4170 (although the very specific use case described here is better accomplished using runtime.Breakpoint).

aarzilli avatar Oct 22 '25 13:10 aarzilli