Visual Studio 2010 Locals 窗口红色字体
我的一个 Debug.Assert() 失败,因此我得到一个包含调用堆栈的窗口,然后单击“重试”。此时,在“局部变量”窗口中,某些行的“值”列中具有红色文本,而不是黑色文本。这意味着什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这意味着这些变量已由先前的操作更新。该操作可能是执行一行代码,也可能是您手动更改值,如@CharithJ 的答案引用的博客中详细说明的那样。
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.
变成红色的行意味着该表达式的值自上次计算以来已被修改。
A row that has turned red means that the value for that expression has been modified since the last time it was evaluated.
对于那些想知道调用什么字符串来编辑更改值文本颜色的人,可以在
Locals Window → Changed value → Foreground 下找到它。
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.