Automatically call breakpoint before any exception?

I notice I can set conditional breakpoints to be called just before an Exception statement is about to be called. This is useful since before any exception I can pause the program in debug mode to get a full state of everything immediately before the exception is thrown. 

It seems like it would be trivially possible to do this problematically somehow (ie: check if the code about to be executed is an exception, and if it is, dynamically insert a breakpoint automatically).

So is there an option in Rider where I can do this so I don't need to create breakpoints manually on every exception statement I write?

1 comment
Comment actions Permalink


I would suggest trying Debugging exceptions, please find the instruction here. You might also find useful options Break on user-unhanded exceptions and Process exceptions outside of my code in File | Settings | Build, Execution, Deployment | Debugger | Exceptions. Please let me know if that helps or if you have other questions.


Please sign in to leave a comment.