如何在Visual Studio 2012 Express for Web中重新启用对未处理异常的破坏? [英] How to re-enable breaking on unhandled exception in Visual Studio 2012 Express for Web?

查看:45
本文介绍了如何在Visual Studio 2012 Express for Web中重新启用对未处理异常的破坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在调试模式下发生该异常时,我已在Visual Studio 2012 Express for Web中禁用了在System.NullReferenceException上的中断.现在如何启用它?调试/例外菜单项丢失.我在注册表中搜索System.NullReferenceException项,并且State的值始终为16418-与其他异常相同.

I have disabled breaking on System.NullReferenceException in Visual Studio 2012 Express for Web when that exception occured in debug mode. How to enable it now? Debug/Exceptions menu item is missing. I searched for System.NullReferenceException keys in registry, and value of State was always 16418 - same as other exceptions.

推荐答案

我相信(但目前无法验证)这些选项保存在解决方案的suo(解决方案用户选项)文件中,该文件与以下目录位于同一目录中解决方案(sln)文件.

I believe (but can't verify right now) that those options are saved in the solution's suo (solution user options) file which is in the same directory as the solution (sln) file.

您可以尝试将文件移动到其他目录,然后查看是否再次出现异常.您将松散已经考虑过的所有其他自定义(启动项目,断点,监视等)

You can try to move the file to a different directory and see if your exception comes back. You'll loose any other customization you've done thought (start up project, breakpoints, watches, etc.)

或者您可以尝试创建扩展并将此功能添加回以表达:-)

Or you may try creating an extension and adding this functionality back to express :-)

这篇关于如何在Visual Studio 2012 Express for Web中重新启用对未处理异常的破坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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