Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet/Jsp debugging

 
Laojar Chuger
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most of the more expensive IDEs support remote debugging.
 
Mirko Froehlich
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic