NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide

Debugging NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide
596210-006
6-2
Debugging using Eclipse platform
218431829 is the process ID (PID) of the NSJSP process to be debugged.
Note:
1. You can open multiple jdb sessions and connect to any NSJSP processes in separate
jdb sessions.
2. There is no limit for the Numstatic value for this option.
3. jdb provides all debug options like setting breakpoints, watch a field value, continue, step
in, step out and so on.
For more information on debugging, see Debugging Java Programs in
Implementation specific section of NonStop Java 6.0 Programmer's Pages Manual
and, the jdb: Java Debugger section in NonStop Java 6.0 Tools Reference Pages
Manual.
Debugging using Eclipse platform
This section describes the usage of open source Eclipse platform to debug web
applications deployed in NSJSP.
To debug web applications, complete the following steps:
1. Add the debugging parameters in the Arglist of servlet.config file in
<NSJSP_HOME>/conf directory. This can be performed in the following three
ways:
a. Debugging web application with Numstatic equal to 1 with single debug
port
If you intend to debug web application with single port, make the following
changes to the servlet.config file in <NSJSP_HOME>/conf directory:
Add the following arguments to the Arglist of the servlet.config
file.
Arglist -Xdebug -Xnoagent -Djava.compiler=none
-Xrunjdwp:server=y,transport=dt_socket,suspend=n,
address=<debug-port>
Set the Numstatic and Maxservers values to 1
For more information on java command-line options, which are used for
debugging see the Debugging Java Programs section in NonStop Java 6.0
Programmer's Pages Manual.
b. Debugging web application with Numstatic greater than 1 with dynamic
debug ports
If you intend to debug web application with dynamically allocated ports,
make the following changes to the servlet.config file in
<NSJSP_HOME>/conf directory.