To enable debugging, set the following attributes of the JAVA 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 6.1 SP7 Administrator’s Configuration File Reference.