NonStop Server for Java Programmer's Reference (NSJ 4.0+)

Transports
A JPDA transport is a form of inter-process communication used by a debugger application and the
debuggee. NonStop Server for Java 4 provides a socket transport that uses the standard TCP/IP sockets to
communicate between debugger and the debuggee.
NonStop Server for Java 4 defaults to socket transport. NonStop Server for Java 4 does not support shared
memory transport.
java Command-Line Options to Run a Debuggee
For remote debugging, you need to start the Java application to be debugged (debuggee) as a server using the
following command:
java -Xdebug -Xnoagent -Xint
-Xrunjdwp:transport=dt_socket,server=y,address=port_no,suspend=y
classname arguments
-Xdebug
Enables debugging.
-Xnoagent
Disables the old Sun.tools.debug agent. This is the default.
-Xint
Does not use the HotSpot compiler; uses just the interpreter.
-Xrunjdwp:sub-options
sub-options are specified in the following format:
name1[=value1],name2.=[=value2]...
The sub-options are:
transport
Name of the transport to use. DT_socket is the value for this option. NonStop Server
for Java 4 defaults to DT_socket.
server=y
y means listen for a debugger application
address=transport-address-for-this-connection
The transport address is the port number in which the debuggee is listening on for the
debugger.
suspend=y
Suspends the debuggee just before the main class loads.
Starting the Java Debugger (jdb) Tool
Now, the Java Debugger (jdb) tool can be started to communicate with the debuggee by using the jdb
command as described for various situations.
If you are using JDB on the same NonStop Kernel system where the debuggee runs, use
jdb -attach portnum