Sun Java System Web Server 7.0 Developer's Guide to Java Web Applications

Enabling Debugging

When you enable debugging, you enable both local and remote debugging. You can enable debugging through Admin Console or by editing server.xml.

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

Procedure To Enable Debugging Through Admin Console

  1. Access the Admin Console.

  2. Click the Edit Java Settings tab in the home page.

  3. Click the JVM Settings tab.

  4. Select the Enable Debug option to enable debugging.

    For more information about debug options, see JPDA Options

  5. Click Save.

ProcedureTo Enable Debugging by Editing server.xml

  1. Set the following attributes of the jvm element in the server.xml file:

    • Set debug="true" to turn on debugging.

    • Add any desired JPDA debugging options in the debugoptions attribute. See JPDA Options.

    • To specify the port to use when attaching the JVM to a debugger. Specify address=port_number in the debugoptions attribute.

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