Is there a way in C #, in the debugger, to suppress an exception from hacking into a debugger?

I am using VS2010 in C #

there is a place in my code where the exception is thrown and handled correctly.

the problem is that I would like to configure the debugger to break all exceptions that have been processed or not - all exceptions except this one. My goal is to see all discarded exceptions in the debugger, but this one exception is infuriating me, as it often fights

Would I like some #pragma trick?

+6
c # visual-studio
source share
2 answers

Go to the Debug menu, select Exceptions... Expand the Common Language Runtime Exceptions category and uncheck the specific exception, if it is there or not, you can add it using the Add... button in the lower right part (enter the full name of the class).

+7
source share

Look at the Visual Studio debugging menu under Exceptions. The dialog box that appears should allow you to customize the type of behavior you are looking for.

+3
source share

All Articles