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

3

10

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.

Pellet answered 10/10, 2009 at 20:53 Comment(4)
I don't have this version, but have you tried pressing ctrl+alt+e ?Beef
Or Ctrl+D,E. Depending on your keyboard shortcuts.Borneo
Maybe the information on MSDN is wrong? What options do you have in your Debug menu ?Doze
Take a look at the Community Content at the bottom of the MSDN article. Other people have the same problem (one person seems to indicate its an issue with VWD)Stutsman
M
9

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.

Minium answered 12/7, 2011 at 0:49 Comment(0)
M
0

In the MSDN page you quote in your question, did you see the part that says ...

Note

To enable the Exceptions menu in Express versions, on the Tools menu, click Settings, and then select Expert Settings.

Matthias answered 6/7, 2011 at 21:57 Comment(1)
Doesn't work. And the other tip about going into Customize... doesn't work either - the menu item just isn't there.Foreandaft
M
0

You could fudge it by breaking on std::exception::exception(), although this is C++ only and it's possible (although inadvisable) that something throws an exception which does not derive from std::exception

Metronome answered 11/7, 2011 at 14:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.