NonStop Server for Java Tools Reference (NSJ 4.2+)

print myObj.myMethod() (if myMethod() returns a
non-null)
print new java.lang.String("Hello").length()
dump
For primitive values, this command is identical to print. For objects, it
prints the current value of each field defined in the object. Static and
instance fields are included.
The dump command supports the same set of expressions as the print
command.
threads
List the threads that are currently running. For each thread, its name and
current status are printed, as well as an index that can be used for other
commands, for example:
4. (java.lang.Thread)0x1 main running
In this example, the thread index is 4, the thread is an instance of
java.lang.Thread, the thread name is main, and it is currently
running.
thread
Select a thread to be the current thread. Many jdb commands are based on
the setting of the current thread. The thread is specified with the thread index
described in the threads command.
where
where with no arguments dumps the stack of the current thread. where
all dumps the stack of all threads in the current thread group. where
threadindex dumps the stack of the specified thread.
If the current thread is suspended (either through an event such as a
breakpoint or through the suspend command), local variables and fields
can be displayed with the print and dump commands. The up and down
commands select which stack frame is current.
Breakpoints
Breakpoints can be set in jdb at line numbers or at the first instruction of a
method, for example:
stop at MyClass:22 (sets a breakpoint at the first instruction for line
22 of the source file containing MyClass)