9. Developing and Deploying Web Application in NetBeans

9.6. Debugging Web Applications in NetBeans

You can debug a webapp just like standalone application. For example, you can set breakpoints, single-step through the programs, etc.