ACSE/Presentation and ROSE Interface Programmer's Guide

Chapter 5 69
Troubleshooting Your Application
Using A/P API Tracing
environment variables on the first valid APRI call (always ap_open) and
then set the global API trace variables according to the value of the
environment variables. If no environment variables are present, then no
API tracing takes place.
Environment Variable Names
The names of the ACSE/Presentation (AP) environment variables
available are as follows:
AP_TRACE
AP_TRACE_FILE
AP_TRACE_MAX_UDATA
See “Trace Output” for the effects of these environment variables.
AP_TRACE:. The value defined for this variable indicates the trace
level to be used for each API call. It is actually a set of flags, defined in
the file /usr/ include/api_trace.h.
Default = 0 (trace_off).
You may set this value in one of two ways:
1. It may be treated as an integer value and may be set using either
decimal or hexadecimal notation, for example:
AP_TRACE=0xff
2. It may be treated as a set of ASCII flags. The following standard flags
are defined.
i = input parameters
o = output parameters
x = external procedure entry exit
e = error tracing
n = internal tracing
AP_TRACE_FILE:. The name of the file that is to receive tracing
results.
Default = stderr.