File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat Debug Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Debug" Watch "Tomcat Debug" New topic

Tomcat Debug

Patrick McDonogh
Ranch Hand

Joined: Oct 13, 2005
Posts: 89
Hi there,

I was wondering if someone could tell me how to debug my web app.
I am using tomcat 5.5 and the latest intelliJ Idea version 6.something.
I will have to use remote debugging and have tried a couple tutorials but they do not work.

Thank you in advance for any help.
Have a great day.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
My approach to debugging web apps is to code defensively in the first place.

I use lots of checks for important references being null or improper and throw IllegalArgumentException with some informative msg.

It is REALLLY helpful to have custom toString() methods on your classes give a clear dump of the object state.

At early stages there are plenty of System.out print lines.

It is worth the effort to make classes that do not depend directly on servlet specific APIs and can be tested outside the servlet environment.

I agree. Here's the link:
subject: Tomcat Debug
It's not a secret anymore!