Visual Studio:“未处理异常时中断"发生了什么?选项? [英] Visual Studio: What happened to the "Break when an exception is unhandled" option?

查看:24
本文介绍了Visual Studio:“未处理异常时中断"发生了什么?选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,Visual Studio(2008 和 2010)曾经有一个选项可以在抛出异常或未处理异常时中断.现在,当我打开异常"对话框 (Ctr+Alt+E) 时,它只会在抛出异常时中断:

As far as I remember, Visual Studio (both 2008 and 2010) used to have an option to break either on thrown exceptions or on unhandled exceptions. Now when I bring up the Exceptions dialog (Ctr+Alt+E), it just offers to break when an exception is thrown:

我尝试调整该对话框中的列的大小,但这没有帮助.这是一个错误,还是我遗漏了什么?

I've tried resizing to the columns in that dialog, but that did not help. Is this a bug, or am I missing something?

推荐答案

似乎表明它可以如果您没有启用仅启用我的代码(仅限托管)",则会发生这种情况.

This seems to indicate it can occur if you don't have "Enable Just My Code (Managed Only)" enabled.

刚刚在此处尝试过(VS 2008),我可以验证禁用该选项会导致 User-Unhandled 列消失.您可以在此处找到该选项:工具 -> 选项 -> 调试 -> 常规

just tried it here (VS 2008) and I can verify that disabling that option will cause the User-Unhandled column to disappear. You can find the option here: Tools -> Options -> Debugging -> General

这篇关于Visual Studio:“未处理异常时中断"发生了什么?选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆