Pages

Monday, July 27, 2009

See all exceptions in .Net code

Visual Studio 2008 has an option to display all the exceptions being thrown and/or not caught by user code. The Exceptions dialog is available by pressing Ctrl+Alt+E.

This is handy if you’re working on other people’s code that has many try/catch blocks with an empty catch part. Effectively, this jumps over the exception, ignoring it, but can lead to stack overflow blowup in certain occasions.

No comments: