Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manuel d'utilisateur Page 52

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 51
Using Forte for Java to Debug Servlets and JSPs
52 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
4. iPlanet strongly recommends that you also install the JPDA, available here:
http://java.sun.com/products/jpda/
5. If you installed the JPDA, copy all the files from the jpda_install/bin directory
to the jdk1.2_install
/jre/bin directory. Also copy the jpda.jar file from the
jpda_install
/lib directory to the jdk1.2_install/jre/lib/ext directory.
Note that the JPDA runs on JDK 1.2, not 1.3.
6. On Windows NT, add the following line to the magnus.conf file to enable the
NT console:
Init fn="nt-console-init" stdout=console stderr=console
7. Edit the jvm12.conf file to enable remote debugging. If you did not install the
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
8.
Start Forte for Java, and mount the directory that contains the servlet or JSP
you want to debug.
9. Start iPlanet Web Server. You will see a line similar to the following displayed
in the console:
Listening for transport dt_socket at address: port_number
Write down this port_number.
10. In Forte for Java, select the Debug menu and the Attach to VM... option. Type
the port_number in the Port: text box, then select OK.
You are now ready to debug your servlet or JSP.
Vue de la page 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 123 124

Commentaires sur ces manuels

Pas de commentaire