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

Debugging Best Practices??

Ranch Hand

Joined: Dec 16, 2004
Posts: 63

We have recently started to work in Struts but we find debugging the most challenging in Struts. I want to know as to what are the best practice for debugging Struts Applications.

Thank you

Florian Kammermann

Joined: Jan 22, 2005
Posts: 8
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
What do you mean by "debugging" and what about it do you find being difficult with Struts?

If you're talking about debugging as in "using my IDE's debugger", then it should be no different from using, for example, plain Java Servlets.

If you're talking about "printing out stuff so that I can figure out later what exactly happened that lead to getting HTTP 500 on the browser", again, it should be no different from any other framework.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

This site should help pick out the major things.

A good workman is known by his tools.
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
The book "Robust Java" has a chapter about debugging Java applications.
I agree. Here's the link:
subject: Debugging Best Practices??
jQuery in Action, 3rd edition