绿色例外? [英] Green Exceptions?

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

问题描述

当在VStudio中遇到未处理的异常时,调试器会将线条 YELLOW 突出显示为抛出异常的行。

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:

我一直把它们视为正常的例外,但是今天我决定要求google / bing不会为Visual Studio Green Exceptions提供任何结果

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"

推荐答案

如果直接抛出异常的行(通常是 throw 语句),该行将突出显示为黄色。

如果行是调用异常抛出异常的函数(通常是调用.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).

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆