On Wed, Apr 18, 2001 at 11:03:01AM -0400, [EMAIL PROTECTED] wrote:

> I need to debug a servlet running in tomcat.  I can do this from the
> command line using jdb; however, so far I have had no luck using
> jde.  jde debugging works for me with simpler targets using both jdb
> and jdebug.

I'm debugging with JDEbug in "attach mode" and it seems to work OK
(though I haven't used it extensively yet).  I followed the FAQ at
the jde site (Question "How can I debug servlets/JSP with JDEBug?").

So I just modified the debian startup script for Tomcat in order to
include the switches:

 -Xrunjdwp:transport=dt_socket,address=5432,server=y,suspend=n -Xdebug

and then I attach the JDEbug debugger to that socket at any time.


Incidentally, I'd like to chime in with the recent praises for jde and
JDEbug.  In the company I joined recently, everybody is sold on the
idea that "visual" environments are more productive; in the particular
case of Java, they almost got me convinced (JBuilder is OK).  After
using jde for a while, I'm reaffirmed in my view that the equation
"visual==productivity" is just pure BS.  As someone said about the
Unix philosophy in general,

   ``"user-friendlyness" is ambiguous; we make a distinction between
     "easy to learn" and "easy to get things done"(once you've learned it)''

JL
-- 
Jose Luis Marin                             [EMAIL PROTECTED]
Alerce Informatica Aplicada                 Area de Sistemas
Marina Española 12 (Edif. Azabache)
Tel +34 976 253400
Fax +34 976 258071

Reply via email to