Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in C# is there a way, in the debugger, to suppress a exception from breaking into the debugger?

I'm using VS2010 in C#

there is a place in my code where an exception is thrown and properly handled.

the problem is that I'd like to configure the debugger to break on all exceptions, handled or not - all exceptions but this one. My goal is to see all the thrown exceptions in the debugger, but this one exception is driving me bonkers as it hits somewhat often

I'd love some kind of #pragma trick?

like image 473
stuck Avatar asked Jun 21 '10 01:06

stuck


1 Answers

Go to the Debug menu, select Exceptions.... Expand the Common Language Runtime Exceptions category and either uncheck the specific exception if it's there or if it's not, you can add it via the Add... button on the bottom right side (type in the full class name).

like image 102
CMerat Avatar answered Oct 06 '22 01:10

CMerat