49
Chapter 5
Debugging Servlets and JSPs
This appendix gives guidelines for debugging servlets and JSPs in iPlanet Web
Server 6.0. It includes the following sections:
• Servlet Debugging
• JSP Debugging
• Generating a Stack Trace for Debugging
• Using Forte for Java to Debug Servlets and JSPs
• JPDA Options for Debugging
Debugging servlets and JSPs requires that you edit the
jvm12.conf file as described
in this chapter. For more general information about this file, see Appendix C, “JVM
Configuration.”
Servlet Debugging
If the server has been instructed to use a JDK, you can do remote servlet
debugging. If the server is using the JRE, you need to switch it to using the JDK
before you can do remote debugging. For information on instructing the server to
use the JDK or the JRE, see the section “Configuring JRE/JDK Paths,” on page 39.
Assuming that the server is using the JDK, you can enable remote debugging by
following these steps:
1. Make sure that the server is running in single-process mode. Single-process
mode is the default, but you can check in the file
magnus.conf to make sure
that the
MaxProcs parameter is not set to a value greater than 1. If you do not
see a setting for
MaxProcs in magnus.conf, the default value of 1 is enabled for
it. For more information about single process mode versus multi-process
mode, see the iPlanet Web Server Administrator’s Guide.
Commentaires sur ces manuels