如何在 Visual Web Developer Express 中打开“所有异常时中断”

发布于 2024-08-08 05:41:27 字数 213 浏览 7 评论 0原文

在 Visual Web Developer Express 中,如何打开“所有异常时中断”?我正在寻找“调试”>菜单项例外,但没有找到它,即使我尝试自定义菜单也没有找到它。

MSDN 上的这个页面表明这应该是可能的。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

倚栏听风 2024-08-15 05:41:27

例外菜单不会在 Visual Web Developer Express 中显示 - 它仅在 Visual C# Express 中显示(我假设是 Visual Basic Express)。

然而,我们并没有失去所有的希望——VWD Express 中的默认行为是在所有异常情况下中断。如果您感觉缺少异常,可以尝试关闭“Just My Code”调试,这将捕获 CLR 代码和链接库中引发的异常。

为此,请打开“工具”->“工具”。选项->调试->常规,然后取消选中“仅我的代码”。如果您想单步执行 CLR 代码,您还可以在同一屏幕上启用该功能。

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.

残花月 2024-08-15 05:41:27

在您在问题中引用的 MSDN 页面 中,您是否看到了该部分那说……

注意

启用“例外”菜单
Express 版本,在“工具”菜单上,
单击“设置”,然后选择“专家”
设置。

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.

寻找一个思念的角度 2024-08-15 05:41:27

您可以通过中断 std::exception::exception() 来捏造它,尽管这只是 C++,并且有可能(尽管不建议)某些东西抛出不是从 std 派生的异常::异常

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文