问题描述
突然,我的visual studio
不会在未处理的异常上中断,有时甚至不会在断点处停止.
Suddenly my visual studio
does not break on unhandled exceptions and sometimes does not even stop on break points.
我已经阅读了许多其他相关的SO帖子,例如:
I have read many other related SO posts like these:
- How to make visual studio break only on unhandled exceptions?
- Why doesn't Visual Studio break on exceptions when debugging unit tests?
但没有一个答案能解决我的问题.
but none of the answers solved my problem.
当Visual Studio遇到某些例外时,它将显示以下窗口:
When visual studio breaks on some of the exceptions it displays the following window:
但是我想要原始的方式":
but I want the original 'way':
这些是我的Debug\Exceptions
设置:
有人可以帮助我吗?这件事使我发疯.
Can anyone please help me? This thing drive me crazy.
推荐答案
它称为异常助手". 异常"对话框的屏幕快照可以清楚地表明您一直在对话框中进行更改,该对话框还控制是否启用了异常助手",并且您禁用了仅我的代码"调试.
It is called the Exception Assistant. The screenshot of the Exception dialog makes it clear you've been making changes in the dialog that also controls whether or not the Exception Assistant is enabled, you disabled Just My Code debugging.
重新打开.工具>选项>调试>常规.勾选启用例外助手"选项.
Turn it back on. Tools > Options > Debugging > General. Tick the "Enable the exception assistant" option.
这篇关于调试时Visual Studio不会在未处理的异常上中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!