NonStop Server for Java 4.2 Tools Reference

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)
stop in java.lang.String.length (sets a breakpoint at the beginning of
the method java.lang.String.length)
stop in MyClass.init (init identifies the MyClass constructor)
stop in MyClass.clinit (clinit identifies the static initialization code for
MyClass)
If a method is overloaded, you must also specify its argument types so that the proper
method can be selected for a breakpoint. For example,
MyClass.myMethod(int,java.lang.String), or MyClass.myMethod().
The clear command removes breakpoints by using a syntax as in clear MyClass:45.
Using the clear command with no argument displays a list of all breakpoints currently set.
The cont command continues execution.