Visual Studio 2010 Locals Window Red Font

bouvierr picture bouvierr · May 28, 2011 · Viewed 7.1k times · Source

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?

Answer

Steve Wilkes picture Steve Wilkes · May 28, 2011

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.