Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Development Guide

3.9 Debugging a Servlet

This section presents some generic, basic advice on how to debug a servlet running in the servlet container. It assumes you already know how to use the debugger for your compiler.

Here are some general principals:

Here is the procedure for debugging a servlet:

  1. Prepare for debugging by either

  2. Verify that the servlet library has been loaded into the container.

    There are a number of ways to verify that the servlet library has been loaded, such as by checking the rwagent.log file or by checking the debugger output.

  3. Pause execution of the container process so a breakpoint can be set.

  4. Set a break point in the servlet source code.

  5. Outside the debugger, execute a client that sends a request to the servlet.

  6. When the servlet hits the break point, start your debugging.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.