Debugging with JDB

The JDK contains a useful debugging facility called JDB. JDB is similar to the DBX debugger found on UNIX systems. It is a command-line–oriented debugger that enables you to interact with a running application for debugging purposes. It provides several commands that can be used to perform a variety of debugging tasks such as setting breakpoints and tracking variables.

Note

Advanced Java programmers can gain a better understanding of how the debugger works by looking at the source code of JDB. The JDB source code is found in the SRC.zip file, which is under the JDK root directory. Unzipping this source file will create two directories. The JDB source is based on the sun.tools.ttydebug.TTY class.

The JDB debugging facility is ...

Get e-Commerce Applications Using Oracle8i and Java from Scratch 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.