开发者

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.


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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜