### Set Environment Variables for the Debugger

The debugger user interface running on the workstation uses certain environment variables to determine where it looks for source files, executables, online help, and so on. See the Related Topics below for help on the environment variables themselves.

To set an environment variable for a given session of the debugger, do the following on your OS/2 or Windows workstation:

1. Open a command shell window.
2. Use the SET command to set each environment variable to the required value:

       SET VARNAME=VAL1;VAL2;VAL3

   where VARNAME is the name of the environment variable, and VAL1, VAL2, and VAL3 are values assigned to it (normally multiple values for a variable are separated by semicolons).

   If you want to add more values to an existing variable, use the following syntax:

       SET VARNAME=%VARNAME%;VAL4;VAL5

   This adds both the existing contents of VARNAME and the new values to the variable.

3. Invoke the debugger user interfacefrom that command shell.

If you want to set these environment variables permanently, do the following, depending on the operating system you are using:

From Control Panel select System, then within the System notebook choose the Environment tab. Select the variable you want to change from the list, or enter a new variable name in the Variable entry field, and enter its values in the Value entry field. Click on OK or Apply to save the changed or new variable.

Add the SET... commands to your CONFIG.SYS file. A reboot is required for these changes to take effect.

Environment Variables