Visual Studio 2010本地窗口红色字体

[英]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 Locals window, certain rows have red text instead of black text in the Value column. What does this mean?

我的一个Debug.Assert()失败,所以我得到一个带调用堆栈的窗口,然后单击Retry。此时,在“局部”窗口中,“值”列中的某些行具有红色文本而不是黑色文本。这是什么意思?

5 个解决方案

#1


26  

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.

这意味着这些变量由前一个操作更新。该操作可能是一行代码执行,也可能是您手动更改值,如@ CharithJ的答案所引用的博客中所详述。

#2


10  

Here is an explaination.

这是一个解释。

In this case, I will change "d" to another value: enter image description here

在这种情况下,我将“d”更改为另一个值:

The changed value will turn red afterward to indicate it has been modified: enter image description here

更改后的值将变为红色,表示已修改:

#3


6  

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

已变为红色的行表示该表达式的值自上次计算以来已被修改。

#4


4  

In VS2010, Locals window to change values while debugging in break mode. The changed value will turn red afterward to indicate it has been modified.

在VS2010中,Locals窗口在中断模式下调试时更改值。之后更改的值将变为红色,表示它已被修改。

#5


0  

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.

对于那些想知道字符串被调用以编辑Changed值文本的颜色的人,可以在Locals Window→Changed value→Foreground下找到它。

enter image description here


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2011/05/28/2facb4da80920891619eab10e1c78d10.html



 
© 2014-2018 ITdaan.com 粤ICP备14056181号