Archive

How to Always Break on All Exceptions

On both Visual Studio 2008 and visual Studio 2010, the settings to show all exceptions is the same.

 

Just go to Debug->Exceptions as follows:

Debug Excetpion Menu Choice

 

Then, you will get the following dialog. Make sure to check everything as show below:

Debug Excetpion Menu Choice

Now when an exception is handled by a try catch, you'll know which line of code is the culprit.