Stop on uncaught exception only

Answered

I frequently use the exception breakpoint feature to debug uncaught exceptions. It works great, but it's sort of problematic that it also breaks on caught exceptions because those are usually not what you're interested in debugging. Is it possible to configure Rider to only stop on uncaught exceptions? I've looked for it but was unable to find anything.

It would be nice if there were additional options regarding this, such as restricting the exception breakpoint to certain scopes or files.

3 comments
Comment actions Permalink

Hi Patrik! 

Thank you for contacting us. 

To break only unhandled exceptions, enable the following checkbox: `File | Settings | Build, Execution, Deployment | Debugger -> Exceptions | Break on user-unhandled exceptions (.NET/.NET Core only)'

Here you can find more info about exceptions in Debugging.

Hope this helps! 

1
Comment actions Permalink

Thank you! Just what I was looking for.

I think it would be great if this setting was also accessible from the breakpoint configuration window, perhaps on a per-breakpoint basis. 

0
Comment actions Permalink

Hi Patrik, 

We are going to implement user-unhandled exception settings page, see RIDER-6315

0

Please sign in to leave a comment.