Microsoft KB Archive/312117

= PRB: You Cannot Set the Value of Global Variables in Cordbg.exe =

Article ID: 312117

Article Last Modified on 8/30/2002

-

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.

