NonStop Server for Java 4.2 Tools Reference

Stepping
The step command advances execution to the next line whether it is in the current stack
frame or a called method. The next command advances execution to the next line in the
current stack frame.
Exceptions
When an exception occurs for which there is not a catch statement anywhere in the
throwing thread's call stack, the Java VM normally prints an exception trace and exits.
When running under jdb, however, control returns to jdb at the offending throw. You can
then use jdb to diagnose the cause of the exception.
Use the catch command to cause the debugged application to stop at other thrown
exceptions, for example: catch java.io.FileNotFoundException or catch
mypackage.BigTroubleException. Any exception that is an instance of the
specified class (or of a subclass) stops the application at the point where it is thrown.
The ignore command negates the effect of a previous catch command.
Note: The ignore does not cause the debugged VM to ignore specific
exceptions, only the debugger.
Command-Line Options
When you use jdb in place of the Java application launcher on the command line, jdb
accepts many of the same options as the java command, including -D, -classpath, and
-Xoption.
The following additional options are accepted by jdb:
-help
Displays a help message.
-sourcepath directory1 [:directory2]...
Uses the given path in searching for source files in the specified path. If this option is
not specified, the default path of "." is used.
-attach address
Attaches the debugger to the previously running Java VM by using the default
connection mechanism.
-listen address
Waits for a running VM to connect to the specified address through a standard
connector.
-listenany
Waits for a running VM to connect to any available address through a standard