Two Laptop Bag*
The moose likes Servlets and the fly likes Servlet/Jsp debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet/Jsp debugging" Watch "Servlet/Jsp debugging" New topic
Author

Servlet/Jsp debugging

Laojar Chuger
Ranch Hand

Joined: Dec 20, 2000
Posts: 111
I am not very happy about the debugging method I am using right now. The current method is to log on a file at the server side. However, it is normal to have a white page without any useful information. So I would like to ask what methods you are using.
If we need to design a servlet/jsp debugging application, what's your wish list?
Thanks.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Most of the more expensive IDEs support remote debugging.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Mirko Froehlich
Ranch Hand

Joined: Aug 21, 2000
Posts: 114
You can use JPDI to debug remote applications. As Thomas already mentioned, most new IDEs support this, as well as some standalone debuggers (I'm using BugSeeker). I think you need JDK 1.3 though, or you need to download an addon for JDK 1.2.2. Basically, you need to start your Java application (i.e. the Servlet engine in this case) with some special parameters to enable it to listen on a specific port. You then attach your debugger to the JVM listening on this port, and then you should be able to use it just like you would use a local debugger. I think you need the source code on your machine though.
-Mirko

Originally posted by Laojar Chuger:
I am not very happy about the debugging method I am using right now. The current method is to log on a file at the server side. However, it is normal to have a white page without any useful information. So I would like to ask what methods you are using.
If we need to design a servlet/jsp debugging application, what's your wish list?
Thanks.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet/Jsp debugging
 
Similar Threads
Any new plug in for debugging JSP.
Debugging on Tomcat 5.5 with Eclipse 3.1.1
JSP Debugging
How to find out cgi variables in java?
Tracking the JSP translation time