Cannot disable break on exception

Answered

Rider seems to ignore my settings regarding break points. Break on exception is a useful feature but being unable to turn it off can sometimes make debugging a pain. Often, when working on a team, an unhandled exception somewhere else in the codebase can be ignored in the context of a debugging session but if Rider breaks every time it fires it becomes impossible to ignore it.

I have tried having them Enabled but not Suspending with no luck, nor does disabling them entirely fix the issue.

Am I missing something, is there somewhere I can turn break on exception off outside of the View Breakpoints window?

 

1
6 comments

Enabled=true + Suspend=false  works for me

 

3

Second that one. It is a pain

0

Hi!

If I understand correctly, you try to debug a console project.
Indeed, Rider stops on user unhandled exception every time in case of console projects.
The switch-off option for user unhandled exception in debug session is allowed just only for web projects and Unit tests projects. In other words, if you remove a tick from the checkbox in File | Settings | Build, Execution, Deployment | Debugger -> "Break on user-unhandled exceptions", BUT debugger will still stop on any user-unhandled exceptions.
In case of console projects, any user-unhandled exceptions lead the application to crash and must be handled. Rider just shows a place where a problem was at once. 
This behavior is a feature of IDE.

-1

"In case of console projects, any user-unhandled exceptions lead the application to crash and must be handled."

is not true. For example, you can subscribe to AppDomain.UnhandledException and do Thread.Current.Join().

But even if we want application to crash it does not mean we want debugger to stop on some exceptions.

 

And also WPF has its own exception handling things, user-unhandled exceptions in WPF does not mean it will crash at all.

 

0

Eugeniy, thanks a lot for your use cases.

We decided to support the switch-off option for stopping on user-unhandled exceptions.

Here is a feature request to track. Please, feel free to upvote for it.

We are sorry for the inconvenience!

 

0

Please sign in to leave a comment.