Documentation Contents |
As a demonstration of the Java Debug Interface (JDI), we are providing source code for the jdb debugger.
jdb man pages for Windows
The jdb sample can be run by executing:
java tty.TTY <options>.. <class-name>where <class-name> is the name you would normally place on the
java
command line. The -help
option
provides information on options. Note: Be sure that the Java 2
SDK's lib/tools.jar file is on the class path used to
invoke tty.TTY. The tools.jar file includes the
JDI Library and to the compiled
jdb class files.
For more information on invoking and connecting see Connection and Invocation Details section of the JPDA documentation, particularly the section on jdb.
lib/jpda
directory, in
examples.jar
. (Use jar xvf examples.jar to
extract the contents of examples.jar.) Note: this file
also includes the source for javadt
. Source code of these example
application is included to provide concrete examples for debugger
developers. Example code may be used, modified and redistributed by
debugger developers providing they adhere to the terms in the
copyright notice.
jdb uses the following packages (found in the
examples.jar
file):
tty
expr
Expr.jj
, you
will need the JavaCC parser
generator.
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved. Please send comments using this Feedback page. |
Java Technology |