Sun Java System Web Server 6.1 SP6 Programmer's Guide to Web Applications

Enabling Debugging

When you enable debugging, you need to enable both local and remote debugging.

You can enable debugging in one of these ways, as described in the following sections:

Sun Java System Application Server debugging is based on the JPDA (Java™ Platform Debugger Architecture software). For more information, see JPDA Options

Using the Administration Interface

ProcedureTo enable debugging

  1. Access the Server Manager and click the Java tab.

  2. Click JVM General.

  3. Specify the Java home in the Java Home field.

    The Java home is the path to the directory where the JDK is installed.

  4. To enable debugging, select On from the Debug Enabled drop-down list

  5. Specify debug options in the Debug Options field.

    For more information about debug options, see JPDA Options

  6. Click OK.

Editing the server.xml File

To enable debugging, set the following attributes of the JAVA element in the server.xml file:

For details about the server.xml file, see the Sun Java System Web Server 6.1 SP6 Administrator’s Configuration File Reference.