Debugging JSP's with AnyJ

AnyJ provides special support for source level JSP debugging using Apaches Tomcat JSP engine.
  1. Create a new JSP workspace.



  2. Add Tomcats 'work' folder[s] to AnyJ's sourcepath (after mounting tomcats root directory).
    1. by marking the folder[s] for 'Parsing' and having the plug for automatic setup of the sourcepath in 'Preferences,Paths' pressed.



    2. OR by unpressing the automatic-sourcepath-plug and manual setup of the sourcepath
  3. Compile the sample bean using 'Workspace|Build All'.
  4. Set a breakpoint in your JSP file.
  5. Run Tomcat using 'Debug Active MainClass'
  6. Run the .jsp in the browser (e.g. http://localhost:8080/examples/jsp/cal/login.html).
  7. For each .jsp, behind the scenes a class is generated. The upper editor shows the .jsp and the current breakpoint. The lower editor shows the exact corresponding position in the class generated from the .jsp source.