问题描述
在 Visual Studio 中运行我的应用程序时,它会以未处理的异常结束,而不是显示带有异常信息的消息框并按照我的习惯继续运行.
When running my app in Visual Studio, it's ending on unhandled exceptions rather than showing a message box with the exception info and continuing on as I'm accustomed to.
我需要更改哪些选项才能恢复到我习惯的行为?
What options do I need to change to get it back to the behavior I'm used to?
在调试/异常中,我确实为 CLR 异常选择了用户未处理选项.
In Debug/Exceptions I do have the User-unhandled option selected for CLR Exceptions.
推荐答案
Debug->Exceptions->Check Thrown/User-Unhandled
是否有公共语言运行时异常
Debug->Exceptions->Check Thrown/User-Unhandled
for Common Language Runtime Exceptions
也许尝试进行清理/重建,然后再次运行?也许调试符号已损坏或其他什么..
edit: Maybe try to do a clean/rebuild, and run again? Maybe debug symbols are corrupt or something..
这篇关于Visual Studio 不会因用户未处理的异常而中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!