A dynamic trace can be activated by setting the UTMTRAC environment variable.
The environment variable is evaluated when the process is started.
Default: the trace is disabled.
Syntax
Unix and Linux systems:
UTMTRAC=prog1#trace1[,[-]trace2 [, ...]][.file1][:prog2#trace1, ...][: ...]
export UTMTRAC
Windows systems
SET UTMTRAC=prog1#trace1[,[-]trace2 [, ...]][.file1][:prog2#trace1, ...][: ...]
Meaning of the parameters:
progn | Either |
tracen | Either Note: The optional minus sign in front of the respective entry explicitly disables trace units. |
filen | Optional specification of the output file. |
You can specify a list of programs in UTMTRAC with different specifications for the individual programs, trace units and output files, or you can enable the trace for all programs and trace units. You will find the definitions of the trace units in the xidyntrc.h
header file supplied in the utmpath/include
directory.
Example 1
Unix and Linux systems
UTMTRAC=all#all
export UTMTRAC
Windows systems
SET UTMTRAC=all#all ()
All trace units are enabled for all processes. The trace output is sent to stderr.
Example 2
Unix and Linux systems
UTMTRAC=utmwork#1.wrkp.%d
export UTMTRAC
Windows systems
SET UTMTRAC=utmwork#1.wrkp.%dd (Windows systems)
Trace unit 1 (KCXPIPE) is activated for utmwork. The trace is output to wrkp.
pid (pid= current process ID of the utmwork
process).
Example 3
Unix and Linux systems
UTMTRAC=utmwork#all,-1
export UTMTRAC
All trace units except unit 1 (KCXPIPE) are activated for utmwork. The trace output is sent to stderr.