HP Superdome SX1000 ACSE/Presentation and ROSE Interface Programmer's Guide - Page 68
Using A/P API Tracing
View all HP Superdome SX1000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 68 highlights
Troubleshooting Your Application Using A/P API Tracing Using A/P API Tracing You enable tracing in your application program and the tracing output is printed to a trace file. Different levels of tracing are provided with the trace facility. For example, you can trace procedure entry and exits, error conditions, or both. A/P API Tracing Using Environmental Variables A/P API has been enhanced to allow control of tracing via environment variables. The original API tracing mechanism provided through global variables is still available, however the new method means you do not need to write any special code in your application to take advantage of API tracing. The following is an example of the new mechanism for APRI: export AP_TRACE=io initiator -nlocal_node -Nremote_node Thu May 16 10:21:46 1996 -> ap_open() > pathname = /dev/osipi > oflags = 0x0 Thu May 16 10:21:47 1996 ap_init_env() fd = 4. env_file = NULL flags = 0. Thu May 16 10:21:47 1996 ap_set_env() fd = 4. attr = AP_ROLE_ALLOWED *val = 1 Thu May 16 10:21:47 1996