Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: Generating a Stack Trace for Debugging
- Next: Using an IDE

# 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.

- Previous: Generating a Stack Trace for Debugging
- Next: Using an IDE

- © 2010, Oracle Corporation and/or its affiliates