本文介绍了绿色例外?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在未处理的异常都是在VStudio遇到一般的调试器突出了线的黄色的作为引发异常的线路。

When unhandled exceptions are encountered in VStudio usually the debugger highlights the line YELLOW as the line that threw the exception.

不过有时候我遇到例外情况,调试器突出了他们的绿色,如下所示:

However sometimes I encounter exceptions where the debugger highlights them green as shown:

我总是被他们作为正常的例外,但今天我决定问,因为谷歌/冰产生任何结果Visual Studio的绿色例外

I've always treated them as normal exceptions, but today I decided to ask since google/bing produced no results for "Visual Studio Green Exceptions"

推荐答案

该行以黄色高亮显示,如果这是直接抛出异常(通常是语句行)。照片这是绿色,如果该行是调用不同的函数抛出异常(通常是调用一个.net函数抛出一个异常)。

The line is highlighted yellow if that is the line that directly threw the exception (typically a throw statement).
It's green if the line is a call to a different function that threw the exception (typically a call to a .Net function that threw an exception).

这篇关于绿色例外?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 14:54