NonStop Server for Java Tools Reference (NSJ 4.0+)
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 connector.
-launch
Launches the debugged application immediately upon startup of jdb. This
option removes the need for using the run command. The debugged
application is launched and then stopped just before the initial application
class is loaded. At that point you can set any necessary breakpoints and use
the cont to continue execution.
-connect connector-name:name1=value1,...
Connects to the target VM through a named connector that uses the listed
argument values.
-dbgtrace [flags]
Prints information for debugging jdb.
-Joption
Pass option to the Java virtual machine, where option is one of the
options described on the reference page for the java application launcher.
For example, -J-Xms48m sets the startup memory to 48 megabytes.
Other options are supported for alternate mechanisms for connecting the
debugger and the Java VM it is to debug. The Java Platform Debugger
Architecture has additional documentation on these connection alternatives.