You can attach the java debugger jdb to a running java process. See the
tool docs for java and jdb. You can also use pretty much any IDE debugger.
The trick is to find some java code that can run servlets, then add this
java code to your ide's project and run your program. There are all sorts
of programs that will do this, but you already have one in your hands:
apache jserv. So, all you really need to debug servlets with jserv is to
add the jserv classes (or even just the .jar file) to your project and run
your favorite debugger on it. You can run this on any machine just by
setting the zone to point to the jvm on your debugging machine.
"Graham Ashby" <[EMAIL PROTECTED]> wrote:
>> So, is there a way of debugging servlets apart from printing debug
>> statements to System.out?
>> With C (and C++) you could attach a debugger to a running process. Is
>> there a way of doing this with JServ?
>> This is, of course, on Unix; Solaris 2.6 to be precise.
>> I would be interested in any solution, open source or commercial.
-- Ari Halberstadt mailto:[EMAIL PROTECTED] <http://www.magiccookie.com/>
PGP public key available at <http://www.magiccookie.com/pgpkey.txt>
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]