PRB: You Cannot Set the Value of Global Variables in Cordbg.exe (312117)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Professional Edition

This article was previously published under Q312117

SYMPTOMS

The Coredbg.exe runtime debugger, which is a stand-alone debugging utility that is included with Visual Studio .NET, does not allow you to set the values of global variables.

RESOLUTION

To work around this issue, use the .NET SDK debugger (DbgCLR) or Visual Studio .NET (which contains its own debugging features) to debug your application.

STATUS

This feature is under review and will be considered for inclusion in a future release.

MORE INFORMATION

Assume, for example, that you have a program in which g_bool is used as a global variable. You can use the print command to view its value, as follows:
(cordbg) p g_bool
g_bool=false
				
However, you cannot use the set command, as follows, to change it:
(cordbg) set g_bool true
				
When you do, you receive the following error message:
g_bool is not an argument, local, or class static.
Variable unavailable, or not valid.

REFERENCES

For more information about the different debuggers available with Visual Studio .NET and the .NET Framework SDK, query on ".NET Framework Tools" in Visual Studio .NET Help.

Modification Type:MajorLast Reviewed:8/30/2002
Keywords:kbprb kbreadme KB312117