Other ApplicationsStruts Resume
Set your name in
A debugger is one of the most powerful tools in a developers toolkit. This tutorial goes over how a user can run an AppFuse based web application and associated test cases under a debugger.
Table of Contents
Open project using an IDE [#1]Open your project using IDEA or Eclipse. There are several HowTos on this available on the AppFuse page.
Here's a quick reference
Running Test Cases in a debugger [#2]
UPDATE 1/13/06 : Since Eclipse does not support debugging using shared memory, AppFuse has been updated to run using Socket debug mode which listens on port 4000
The screenshot below illustrates how this is done in IDEA.
You can now step through your code, examine variables, evaluate expressions etc..
Running your web application using a debugger under Tomcat [#3]The process for debugging your web application when running under tomcat is similar to that described above.
Simply run ant -Dprojectname-debug=true start.tomcat. For this tutorial the command would be ant -Dfoo-debug=true start.tomcat.
You can set your breakpoint any where in your code like controllers, managers and DAO's. Tomcat also supports JSP debugging so you can also set breakpoint in your JSP code and troubleshoot those hard to track display issues.