Using Forte for Java to Debug Servlets and JSPs
Netscape strongly recommends that you also install the JPDA, available here:
4.
http://java.sun.com/products/jpda/
If you installed the JPDA, copy all the files from the jpda_install
5.
to the jdk1.2_install
jpda_install
Note that the JPDA runs on JDK 1.2, not 1.3.
On Windows NT, add the following line to the
6.
Windows NT console:
Init fn="nt-console-init" stdout=console stderr=console
Edit the
7.
JPDA, add the following lines:
jvm.enableDebug=1
jvm.compiler=NONE
If you installed the JPDA, add the following lines:
jvm.enableDebug=1
jvm.compiler=NONE
jvm.option=-classic
jvm.option=-Xnoagent
jvm.option=-Xrunjdwp:transport=dt_socket,server=y,suspend=n
Start Forte for Java, and mount the directory that contains the servlet or JSP
8.
you want to debug.
Start Enterprise Server. You will see a line similar to the following displayed in
9.
the console:
Listening for transport dt_socket at address:
Write down this port_number.
In Forte for Java, select the Debug menu and the Attach to VM... option. Type
10.
the port_number in the Port: text box, then select OK.
You are now ready to debug your servlet or JSP.
52
Netscape Enterprise Server Programmer's Guide to Servlets • November 2001
directory. Also copy the
/jre/bin
directory to the jdk1.2_install
/lib
file to enable remote debugging. If you did not install the
jvm12.conf
/bin
file from the
jpda.jar
directory.
/jre/lib/ext
file to enable the
magnus.conf
port_number
directory