| United States-English |
|
|
|
![]() |
HP 9000 Networking: HP FTAM/9000 Programmer's Guide > Chapter 9 Handling ErrorsUsing API Tracing |
|
API tracing allows you to get detailed information about your program's interactions with the HP FTAM API without your having to access your source code. It provides the return value of each API call made by your program as well as the input parameters to each call. HP FTAM API tracing is controlled by the following three global variables.
The following steps show how to enable API tracing in your program.
The following example shows how to use the variables.
Every time a routine is entered and exited, the time (in hh:mm:ss format) and the name of the call are shown. First the -> arrow indicates the beginning of the call, then the input parameters are shown, and then the %<- arrow indicates the exit. The number following the %<- arrow is the integer value of the return code for that call. A value of 0 indicates that there were no errors. If an integer other than 0 is returned, refer to the /opt/ftam/includei/mapftam.h file to determine which return code corresponds to the integer, and then refer to the "FTAM return_codes" chapter of the HP FTAM/9000 Reference Manual for the cause of the return code and corrective actions you can take. The following is an example trace file for an HP FTAM session. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||