Green Exceptions?

后端 未结 2 1501
终归单人心
终归单人心 2020-12-09 16:12

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

However sometimes

2条回答
  •  北海茫月
    2020-12-09 16:45

    The yellow line is the line where the exception is really thrown.

    The green line indicates a line that is indirectly affected.

    I think the screenshot makes it clear. Note that I had to use the "Callstack" window and switch to the Main() method in order to achieve this effect.

提交回复
热议问题