views:

134

answers:

1
+13  Q: 

Green Exceptions?

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:

Here

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"

+14  A: 

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).

SLaks
In other words: play a bit with navigating the call stack. You will see yellow if you are on the topmost stack frame, and green for every frame below that.
Jon