You can specify the environment variables that are in effect when the program runs. When you run the program, setenv commands for these environment variables are prepended to the run command.
Using the Environment Variables dialog box, you can add or delete environment variables to the Persistent Environment Variables list. All environment variables in the Persistent Environment Variables list are saved with your WorkSet.
The Persistent Environment Variables list for running your program is not the same as the Persistent Environment Variables list for building your program described in "Using Environment Variables".
To open the Environment Variables dialog box:
If you are setting environment variables when loading the program, choose Debug > New Program. In the Debug New Program dialog box, click Environment Variables.
If you are changing an environment variables after a program is loaded, choose Debug > Edit Run Parameters. In the Edit Run Parameters dialog box, click Environment Variables.
To add an environment variable to the Persistent Environment Variables list:
Type the name of an environment variable in the Name text box.
Type a value for the variable in the Value text box.
If you make a mistake, click Clear to remove entries in the Name and Value text boxes.
Click Add to add the environment variable to the Persistent Environment Variables list.
Repeat the previous three steps to add other environment variables.
Click OK to close the dialog box.
Pressing the Return key after each step move the input focus to the next step.
To delete a variable from the Persistent Environment Variables list:
Select a variable from the list.
Click Delete (Delete All removes all environment variables in the list).
Click OK to establish the change and close the dialog box.
To change the value of an environment variable in the Persistent Environment Variables list:
Select an environment variable in the list.
Type a new value in the Value text box and click Change.
Click OK to establish the change and close the dialog box.
An environment variable definition that appears in the Persistent Environment Variables list overrides any environment variable with the same name that appears in the current debugging environment.
To review the current debugging environment variable definitions, click More to open the Current Environment list, which includes all the environment variables in the debugging environment for your program. You can filter the list using the Filter text box.
To override the value of an environment variable:
Select an environment variable in the Current Environment list.
Click <<Add to add the environment variable to the Persistent Environment Variables list.
Type a new value in the Value text box and click Change.
Click OK to establish the change and close the dialog box.
The environment variable definition in the Persistent Environment Variables list overrides the environment variable definition in the current debugging environment, and is saved with your WorkSet.
To delete a variable and unset its value, you can use the dbx command unset variable.