jdb — Java Debugger

Synopsis

/usr/java/bin/jdb [-host hostname][-password password][classname] 

Description

The Java debugger, jdb, is a dbx-like command-line debugger for Java classes. It uses the Java debugger API to provide inspection and debugging of a local or remote Java interpreter.

Starting a jdb Session

Like dbx, jdb can be used for debugging in two ways. The most frequently used way is to use jdb to start java(1) with the class to be debugged. You do this by substituting the command jdb for java(1) in the command line. For example, to start appletviewer(1) under jdb, use one of the following commands.

castle% jdb sun.applet.AppletViewer 
castle% jdb -classpath INSTALL_DIR/classes sun.applet.AppletViewer
						

When started this way, ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.