Sun Java System Web Server 7.0 Update 7 Administrator's Guide

ProcedureEnable JVM Debugging

  1. Click the Configurations tab to see the list of available configurations and select the configuration you need.

  2. Click Java > JVM Settings tab.

  3. Under Debug Java Settings, select the Enable Debug checkbox.

  4. Provide JVM options as necessary by clicking the New button.

    The default JPDA options are as follows:

    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7896

    If you substitute suspend=y, the JVM starts in suspended mode and stays suspended until a debugger attaches to it. This is helpful if you want to start debugging as soon as the JVM starts. To specify the port to use when attaching the JVM to a debugger, specify address=port_number. Check out the JPDA documentation for a list of debugging options.