aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    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


Java Resources at www.wbrogden.com
 
 
subject: Tomcat Debug
 
Similar Threads
Running Tomcat with Eclipse IDE
Debugging a web application in Eclipse
Tomcat and Eclipse
Getting debug to work on Eclipse
debugging JSPs