Using Developer Tools for Debugging
Oracle Java Studio Enterprise 8.1 technology can be used for remote debugging if you want to
manually attach the IDE to a remote Web Server started in debug mode.
To Debug using NetBeans 5.5
Press mouse button the Web project name in the IDE. Choose Debug
Project from the context menu.
Web Server will then start in debug
mode and the IDE will pause executing the program at the breakpoint you have
set in your application.