Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

The Java Debugger

The Java Debugger (jdb) helps you find and fix bugs in Java language programs. When using the jdb debugger with the Application Server, you must attach to the server from the debugger at its default JPDA port, which is 9009. For example, for UNIX systems:

jdb -attach 9009

For Windows:

jdb -connect com.sun.jdi.SocketAttach:port=9009

For more information about the jdb debugger, see the following links:

Java Platform Debugger Architecture - The Java Debugger: http://java.sun.com/products/jpda/doc/soljdb.html

Java Platform Debugger Architecture - Connecting with JDB: http://java.sun.com/products/jpda/doc/conninv.html#JDB

You can attach to the Application Server using any JPDA compliant IDE debugger, including NetBeans, Sun Java Studio, JBuilder, Eclipse, and so on.