NonStop JMS C++ API Programmer's Guide
Troubleshooting
NonStop Server for Java Message Service C++ API Programmer’s Guide—526459-002
8-3
Debugging NSJMS C++ API Client Applications
Debugging NSJMS C++ API Client
Applications
To debug an NSJMS C++ API client application, start an NSJMS C++ API client within
an Inspect session by issuing the run -debug program_file_path
[arguments] command. The operating system first starts the process in the hold
state then starts the Inspect debugging tool, at which time you can set breakpoints and
step through code statements. For example:
Detailed descriptions about using the Inspect debugging tool to debug client
applications can be found in the Inspect Manual
Tracing NSJMS C++ API Client Applications
To enable tracing of an NSJMS C++ API client application, use the following NSJMS
properties located in the nsjms.properties file.
Logger.loglevel
Logger.type
Logger.filename
Logger.loglevel
The Logger.loglevel property uses the following case-sensitive keywords to
specify the level of messages that are returned to the log file. The information returned
by each keyword is:
fatal—Logs a fatal message that leads to abnormal termination.
error—Logs messages that do not necessarily lead to abnormal termination but
still should be noted. A log level of error displays messages that have log levels
of fatal and error
warning—Logs messages that do not effect the integrity of the JMS client but
should be brought to the JMS client’s attention. warning is the default. A log level
of warning displays messages that have log levels of fatal, error, and warning.
info—Logs messages that do not imply an error but could indicate an important
event, such as a message that the JMS client is connected. A log level of info
displays messages that have log levels of fatal, error, warning, and info.
TACL: run -debug SimpleSender -queue q1 -count 5
INSPECT - Symbolic Debugger - T9673D40 - (30APR03) System \POOH
Copyright Tandem Computers Incorporated 1983, 1985-1999
INSPECT
201,03,00345 SimpleSender #main.#118(SimpleSender.cpp)
-SimpleSender-