Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JetBrains Rider - How to exclude a certain type of exception from break points

I am new to JetBrains Rider and find it extremely handy for C# developing. Just in our solution we have a certain type of exception that is thrown frequently. When I debug I don't want it to break on this type of exception while I do want it to break on all other exceptions thrown. It can be easily achieved by Visual Studio.

I found a post here Project Rider - Break on Exception It told me how to break on a certain type of Exception. But still no clue how to break on all Exceptions except this certain type.

like image 534
Farrah Jiang Avatar asked Sep 19 '25 14:09

Farrah Jiang


2 Answers

You can add exception breakpoint for all types and then add exception breakpoint for your certain type with unchecked 'Suspend' option

like image 100
Arseny.Chernyaev Avatar answered Sep 23 '25 07:09

Arseny.Chernyaev


Jetbrains > Settings > Build, Execution, Deployment > Debugger

Exceptions:

[x] Break on user-unhandled exceptions (excluding Mono)

Except:

-> + Add your Exception here <-

like image 26
Angelo Ortega Avatar answered Sep 23 '25 06:09

Angelo Ortega