This part of the tutorial show you the basic steps for debugging Java Yellow Box applications using the facilities provided by Project Builder. It tells you the steps you must take to prepare for debugging, illustrates several debugging commands, and describes how to debug applications built from Java and Objective-C code.
Project Builder might not support the debugging of 100% Pure Java applications in the current release; check the release notes to verify the status of this feature. You can use /usr/bin/jdb for debugging 100% Pure Java applications.
Project Builder uses the Java Debugger for debugging Yellow Box Java executables. The Java Debugger is a tool that uses a customized subset of jdb commands. Because it is implemented as a set of threads in the Java VM, it is always active when the VM is running. Thus you can interact with the Java Debugger even when the target is running (unlike gdb , which requires that the target be stopped before it can process commands).
Project Builder integrates the Java Debugger and gdb so that, with projects that consist of Java code and other code (Objective-C, C, or C++), you can use both debuggers in the same session, switching between them as necessary. Currently, there is no mixed-stack backtrace; in other words, the stack backtrace when the Java Debugger is used shows only Java frames, and the gdb stack backtrace shows only Objective-C, C, and C++ frames.
Previous | Next
© 1998 Apple Computer, Inc.