Controlling the Process Environment

You can set and unset environment variables for processes you will create in the future, to set up an environment different from the environment of the debugger, and of the shell that invoked the debugger. After setting these environment variables, they apply to all subsequent new processes you debug.

The environment commands have no effect on the environment of any currently running process. The environment commands do not change or show the environment variables of the debugger or of the current process. They only affect the environment variables that will be used when a new process is created.

To print all the environment variables that are currently set, or any specific one, use one of the following commands:

To add or change an environment variable, use one of the following commands:

To remove an environment variable, use one of the following commands:

There is no command to simply return to the initial state the environment variables had when the debugger started. You must use set and remove environment variables appropriately.

See Also


Submit feedback on this help topic

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