NonStop Server for Java Tools Reference (NSJ 4.2+)

You can then attach jdb to the Java VM with the following command:
jdb -attach 8000
Note: MyClass is not specified in the jdb command line in this case
because jdb connects to an existing Java VM instead of launching a
new one.
There are many other ways to connect the debugger to a Java VM, and all of them
are supported by jdb, as specified in Connecting for Remote Debugging.
Basic jdb Commands
The following is a list of the basic jdb commands. The Java debugger supports
other commands, which you can list by using the jdb help command.
{help | ?}
Displays the list of recognized commands with a brief description.
run
After starting jdb and setting any necessary breakpoints, you can use this
command to start the execution of the debugged application. This command
is available only when jdb launches the debugged application (as opposed
to attaching to an existing Java VM).
cont
Continues execution of the debugged application after a breakpoint,
exception, or step.
print
Displays Java objects and primitive values. For variables or fields of
primitive types, the actual value is printed. For objects, a short description is
printed. See the dump command below for getting more information about
an object.
Note: To display local variables, the containing class must have
been compiled with the javac -g option.
print supports many simple Java expressions including those with method
invocations, for example:
print MyClass.myStaticField
print myObj.myInstanceField
print i + j + k (i, j, k are primitives and either fields or local
variables)