This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Debug" Watch "Tomcat Debug" New topic
Author

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.

Patrick
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
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.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Debug
 
Similar Threads
Running Tomcat with Eclipse IDE
debugging JSPs
Tomcat and Eclipse
Debugging a web application in Eclipse
Getting debug to work on Eclipse