Sun Java Studio Enterprise 8 can be used for remote debugging if you want to manually attach the IDE to a remote web server started in debug mode.
Restart the server instance in the debug mode by using the Web Server Administration interface (Server Manager->JVM General->Debug Enabled).
Note the JPDA port number.
Start the IDE.
Choose Debug->Start.
Select the dt_socket method.
Type the remote machine name and JPDA port number.
Any breakpoint created in the IDE on Servlet source code of a deployed application becomes active.