Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 542
Samuel Jack Avatar asked Oct 10 '09 20:10

Samuel Jack


1 Answers

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.

like image 139
Joshua Tompkins Avatar answered Oct 07 '22 17:10

Joshua Tompkins