mono / sdb

A command line client for the Mono soft debugger.
https://www.mono-project.com
MIT License
116 stars 44 forks source link

Additional breakpoint features #57

Open saagarjha opened 4 years ago

saagarjha commented 4 years ago

I frequently use breakpoints, coupled with expression evaluation features, in other debuggers to alter control flow. I was trying to do the same thing in SDB but couldn't figure out how to do so–I'm not sure if SDB has these features or if I just can't find them. One way I do something like this is by setting breakpoints on individual instructions and then evaluating expressions (to change condition variables) and resuming execution. Does SDB support doing things like this? (Specifically, can I set a breakpoint on a specific instruction in a method and add debugger commands to it that run whenever it gets hit?)

alexrp commented 4 years ago

The only things SDB has that sound vaguely like this is conditional breakpoints and watches, but those won't cover everything you've mentioned here. There's no particular reason it couldn't be implemented, though.