
Setting Up the Debugger Environment
8
5
Setting Up the Debugger Environment
You can define
environment variables that set certain debugger parameters
you normally use. An environment variable is a system symbol that you define
and assign to a string. When you use environment variables, default values
are set, making each individual invocation of the debugger simpler because
these parameters are automatically specified.
The debugger uses environment variables for finding or obtaining certain
types of information. The installation program either sets up the following envi-
ronment variables or you can do it manually:
SET PATH=C:\c5xhll
;%PATH%
SET D_DIR=C:\c5xhll
SET D_SRC=C:\c5xhll
If you choose not to have the environment variables set up for you, you can
modify your autoexec.bat file to include the SET commands above.
The remainder of this section describes these environment variables and
other variables that you can define.
Identifying the directory that contains the executable files (PATH statement)
You must include the debugger directory in your PATH statement. This allows
you to specify the debugger executable without specifying the name of the
directory that contains the executable file.
-
If you modify your autoexec.bat file to change the path information, add
the following to the end of the PATH statement:
;C:\c5xhll
-
If you create your own batch file, use this format:
SET PATH=C:\c5xhll;%PATH%
Do not precede the equal sign with a space. The addition of ;%PATH% en-
sures that this PATH statement does not undo the PATH statements in any
other batch files (including the autoexec.bat file).
Identifying alternate directories for the debugger (D_DIR variable)
The debugger uses the D_DIR environment variable to name alternative
directories that contain auxiliary files (evmrst, evminit.cmd, etc.) that the
debugger needs. The command for assigning the environment variable is as
follows:
SET D_DIR=C:\c5xhll
Do not precede the equal sign with a space.