The following source is from Dustin R. Callaway, all rights reserved by him:).
 
public class ServletDebug {
    public static void main(String [] args) {
        String [] serverArgs = {"-p", "8080", "-d", "/servlets"};
        sun.servlet.http.HttpServer.main(serverArgs);
    }
}
 
Add this class to your project with the class which you want to test. Set some
breakpoints in your class, then run ServletDebug in debug mode. Open a browser
window and type the url to request your servlet.
 
liwen
 
----- Original Message -----
Sent: Wednesday, May 17, 2000 2:36 PM
Subject: Re: IDE to build and debug servlets

How can I do that?? Can you send us a little example?
 
thanks in advance
 
--ANTONIO
-----Mensaje original-----
De: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]En nombre de Shawn McKisson
Enviado el: mi�rcoles 17 de mayo de 2000 5:45
Para: [EMAIL PROTECTED]
Asunto: Re: IDE to build and debug servlets

It is easy to write a wrapper for JRUN on your dev machine that launches off the web server and servlet engine.
Using this technique you can use any IDE you like to step through servlet code.
 
--shawn
----- Original Message -----
Sent: Tuesday, May 16, 2000 12:53 PM
Subject: Re: IDE to build and debug servlets

Forte For Java from Sun can help you with the servlets and the Community Edition is freely available.  Debugging servlets is problematic and I don't know of a gui that can do it.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Rajesh Nair
Sent: Tuesday, May 16, 2000 12:45 PM
To: [EMAIL PROTECTED]
Subject: IDE to build and debug servlets

Anybody know of a reasonably priced(<$200) IDE for Windows that can be used to
write and debug servlets?




Rajesh Nair
[EMAIL PROTECTED]
Ph: 913 599 7201

R&D
Informix Software

Reply via email to