Cannot Change Value Dialog Box

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Cannot Change Value Dialog Box.

Error
The value of this variable cannot be changed | The name name does not exist in the current context | various other messages

This message box appears when you try to change the contents of a variable to an illegal value in a debugger window (Autos, Watch, or Locals windows) or in the QuickWatch dialog box. For example, if you try to set the value of an integer variable to a character string, this message box appears.

Make sure the input you type into the debugger window or QuickWatch dialog box represents a legal value for the variable you are trying to set.

Expressions in the Debugger

Show: