Setting Environment Variables
You can add, change, and delete the environment variables that are in effect when the program runs.
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.
To open the Environment Variables dialog box:
- 1. If you are setting environment variables when loading the program, Debug
New Program. In the Debug New Program Dialog Box, click Environment Variables.
- 2. If you are changing environment variable 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:
- 1. Type the name of an environment variable in the Name text box.
- 2. 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.
- 3. Click Add to add the environment variable to the Persistent Environment Variables list.
- 4. Repeat the previous three steps to add other environment variables.
- 5. Click OK to apply the addition and close the dialog box.
To delete a variable from the Persistent Environment Variables list:
- 1. Select a variable from the list.
- 2. Click Delete (Delete All removes all environment variables in the list).
- 3. Click OK to apply the change and close the dialog box.
To change the value of an environment variable in the Persistent Environment Variables list:
- 1. Select an environment variable in the list.
- 2. Type a new value in the Value text box and click Change.
- 3. Click OK to establish the change and close the dialog box.
To override the value of an environment variable:
- 1. Select an environment variable in the Current Environment list.
- 2. Click <<Add to add the environment variable to the Persistent Environment Variables list.
- 3. Type a new value in the Value text box and click Change.
- 4. Click OK to apply 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.