VS 2015 调试暂停颜色 [英] VS 2015 debugging pause color
问题描述
我正在调试项目并点击暂停".有时线标记为绿色(最常见),有时标记为黄色,有什么区别?(Visual Studio 2015)
I'm debugging project and hit 'pause'. Sometimes line is marked green (most often) and sometimes yellow, what's the difference? (Visual Studio 2015)
(调试 C# 控制台应用程序,net 4.5)
(Debugging C# console application, net 4.5)
推荐答案
绿线表示高亮语句上的代码正在执行.例如,代码可能正在等待事件或调用了一些没有可用源的代码.黄色高亮表示该语句是您前进时要执行的下一个.
Green line indicates that the code on the highlighted statement is executing. The code may, for example, be waiting for an event or has called some code that has no source available. A yellow highlight means the statement is the next to be executed when you step forward.
在调试时返回调用堆栈可以很容易地看到这一点.堆栈中选定的步骤显示为绿色.其他步骤以灰色背景显示,至少使用我的默认设置.
You can easily see this by going back in the call stack when debugging. The selected step in the stack is shown green. Other steps are shown in gray background, at least with my default settings.
这篇关于VS 2015 调试暂停颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!