Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2008 Addon to temporarily disable/remove all catch block

Is there any addon by which I can disable all catch blocks temporarily. I'm maintaining an application and I need to find out where exactly it is throwing exception. Someone has done error handling is done is all layers to make my job tough :(

like image 696
softwarematter Avatar asked Jun 08 '09 12:06

softwarematter


1 Answers

I don't know a way to disable catch blocks but what you are trying to achieve can be done easily a VS option in exceptions dialog:

Debug -> Exceptions -> CLR Exceptions -> Check the "Thrown" checkbox.

This way, VS will break immediately when an exception is being thrown before running any catch block.

like image 132
mmx Avatar answered Nov 14 '22 20:11

mmx