R – How to turn on Break on All Exceptions in Visual Web Developer Express

visual studiovisual-studio-expressvisual-web-developer

In Visual Web Developer Express, how do I turn on Break on All Exceptions? I'm looking for the Debug > Exceptions menu item but not finding it, not even if I try to customize the menu.

This page on MSDN suggests that it ought to be possible.

Best Answer

The exceptions menu isn't shown in Visual Web Developer Express - it's only shown in Visual C# Express (and I assume Visual Basic Express).

However, all hope isn't lost - the default behavior in VWD Express is to break on all exceptions. If you feel like you're missing an exception, you can try to turn off "Just My Code" debugging, which will catch exceptions thrown in CLR code and linked libraries.

To do this, open up Tools -> Options -> Debugging -> General, and uncheck "Just My Code". If you want to step through CLR code, you can also enable that feature on the same screen.