I have debugged servlets by starting JRun from jdb (on linux).
For some reason I didn't get it working from Emacs JDE (and didn't
pursue it further).
BTW, I would prefer to use Tomcat instead of JRun but we haven't
had a chance to try it out.
-----Original Message-----
From: Mans af Klercker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 02, 2000 9:07 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: servlet running/debugging
Hi Ben!
> Hey all,
>
> I'm looking into ways to program/debug servlets with JDE. Right
> now my best idea is to use the
> Java Server Web Development Kit (JSWDK) which includes a servlet
> engine for testing and debugging
> and figure out some way to get JDE to use that. Perhaps we can
> start the servlet engine when we
> select "Run App" or "Debug App" -- it would put the necessary
> classes into the proper directories
> and perform whatever voodoo is necessary to get it started.
Another server which would be usable (and which will/has replaced JSWDK) is
Tomcat. It is made under the Apache umbrella and will replace their current
servlet container JServ. It's available at http://jakarta.apache.org. And
it's free (both as in beer and in speech)!
>
> The trick, though, is figuring out how to attach to the running
> servlet process and attaching JDEbug
> to it so we can step through code just like a regular app or
> applet. Does anyone have any thoughts
> how best to accomplish this?
That is one way. Another would be to actually run JSWDK/Tomcat as an
application inside of JDE -- which is perfectly doable, since starting it is
a matter of running a specific class.
A nice thing about tomcat is that it has a very configurable architecture,
which enables a developer to write new responders that would enable you to,
for example, see the output of servlets and JSP:s while you run/debug them,
to be able to "fake" requests from a GUI inside of an IDE (guess which!).
Creativity, time and programming skills would set the limit. I would
personally love to see JDE become a premier environment for developing
Servlets and JSP and could possibly put some time into it if others would
to. But it would defninitely be insteresting just to see a running example
of a simple debug connection between JDE and a servlet container.
best,
/Mans