Raible's Wiki
Raible Designs AppFuseHomepage- Korean - Chinese - Italian - Japanese QuickStart Guide User Guide Tutorials Other ApplicationsStruts ResumeSecurity Example Struts Menu
Set your name in
UserPreferences
Referenced by
JSPWiki v2.2.33
Hide Menu |
This is version 1.
It is not the current version, and thus it cannot be edited. 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. In this tutorial I show screentshots of debugging an Appfuse based project using IntelliJ IDEA but the same can be done using most Java IDE's including Eclipse. 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]
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. Happy Debugging!! Attachments:
|