Visual Studio: What happened to the “Break when an exception is unhandled” option?

早过忘川 提交于 2019-12-18 01:57:25

问题


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?


回答1:


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

Edit: 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




回答2:


I have this as well when I've enabled source-server support in VS.NET. When I have source-server support disabled, then the option to break on unhandled exceptions is still visible.

But, a thought: is it necessary to be able to specify that the IDE should break when an exception is unhandled ? As far as i know, this is just default behaviour, isn't it ? So, what's the use to be able to specify that option ?



来源:https://stackoverflow.com/questions/2631305/visual-studio-what-happened-to-the-break-when-an-exception-is-unhandled-optio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!