About Debugger Variables

Debugger variables are pseudovariables that exist within the debugger instead of within your program. They have the following uses:

Debugger variables fall into one of the following categories:

User-defined variables

You create these and can set them to a value of any type.

Preference variables

You modify these to change debugger behavior. You can only set a preference variable to a value that is valid for that particular variable.

Display/state variables

These variables display the parts of the current debugger state. You cannot modify them.

You can delete and redefine the predefined debugger variables in the same way you define your own variables.

If you delete a predefined debugger variable, the debugger uses the default value for that variable.

The following commands deal specifically with debugger variables:

The debugger variable name should not exist anywhere in your program, or you may confuse yourself about which of the occurrences you are actually dealing with. The predefined debugger variables all start with a dollar sign ($), to help avoid this confusion. It is strongly recommended that you follow the same practice. In a future release, all user-defined debugger variables will be required to start with a dollar sign.

Note iconNote

If a debugger variable exists that shares a name with a program variable, and you print an expression involving that name, which of the two variables the debugger finds is undefined.

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.