As a demonstration of the Java Debug Interface (JDI), we are providing source code for the jdb debugger.
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
javacommand line. The
-helpoption 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.
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
Expr.jj, you will need the JavaCC parser generator.
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.