本文介绍了再次启用特定的异常中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Visual Studio。
我现在编程,当我开始在Visual Studio的调试程序,它去一切OK。
当我按下一个按钮,它专注我的代码,并弹出一个对话框(与具有错误的行箭头指向)说有什么错误,但我未选中,上面写着检查显示此警告的时候[...]

I am new to Visual Studio.I'm programming now, and when I started the program in Visual Studio's debugger, it went all OK.When I pressed a button, it focused my code and popped up a box (with an arrow pointing at the line that has the error) saying what's the error, but I unchecked the check that says Show this warning when [...]

这基本上是暂停我的程序,并显示错误警告,但可以通过取消一个被忽略复选框。

It's basically a warning that pauses my program and shows error, but can be ignored by unchecking a checkbox.

现在我需要它,我不知道该如何恢复它。
在工具 - >调试我已经启用了一切

Now I need it and I don't know how to recover it.In Tools -> Debug I have everything enabled

所以现在的问题是,如何恢复弹出的消息

So the question is, how to recover that popup message?

修改

我接到了一个类似的错误截图(我创造了这个错误采取截图)

I got a screenshot from a similar error (I created this error to take a screenshot)

错误看了这样的,它不是这个错误。

The error looked like that, it wasn't that error.

推荐答案

您看到的弹出很可能是后来出现异常通过代码来处理。结果
在Visual Studio中,你可以决定是否要每次抛出一个异常时(AKA第一次机会异常)得到一个通知或只是当没有被处理它。结果
为了重新启用该消息框,打开Excetions窗口(调试> 例外控制D,E ),
,并确保对于公共语言运行库异常您的复选框无论是抛出了用户未处理标记

The pop up you saw was probably an Exception that was later on handled by your code.
In Visual studio you can decide if you want to get a notification every time an exception is thrown (AKA First chance exception) or just when it is not handled.
In order to re-enable the message box, Open the Excetions window (Debug > Exceptions OR Ctrl D, E),and make sure that for Common Language Runtime Exceptions you have the checkboxes marked both for Thrown and for User-Unhandled

这篇关于再次启用特定的异常中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 11:05