开发者

Visual Studio 2010 Locals Window Red Font

One of my Debug.Assert() fails so I get a window with the call stack and I click Retry. At this point, in the Loc开发者_StackOverflow社区als window, certain rows have red text instead of black text in the Value column. What does this mean?


That means those variables were updated by the previous operation. That operation might be a line of code executing, or it might be you manually changing the value as detailed in the blog referenced by @CharithJ's answer.


Here is an explaination.

In this case, I will change "d" to another value:

Visual Studio 2010 Locals Window Red Font

The changed value will turn red afterward to indicate it has been modified:

Visual Studio 2010 Locals Window Red Font


A row that has turned red means that the value for that expression has been modified since the last time it was evaluated.


For those wondering what the string is called to edit the colour of the Changed value text, it can be found under Locals Window → Changed value → Foreground.

Visual Studio 2010 Locals Window Red Font

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜