-
1. Re: JSP debugging
kkaal Jan 6, 2004 3:21 AM (in response to kkaal)Hi,
I would be so grateful, if somebody would tell me how she/he are doing JSP debigging professionally right. I am using printing to log as my method. A bit unprofessional, or??
Klaus -
2. Re: JSP debugging
manimbul Jan 20, 2004 12:09 AM (in response to kkaal)If you use eclipse,
try go to this web site http://www.sysdeo.com/eclipse/tomcatPlugin.html
and read the instruction, I think the instruction clear enough to tell what you have to install first and how you can debug your JSP.
Manimbul -
3. Re: JSP debugging
oz59 Jan 26, 2004 12:11 PM (in response to kkaal)I guess to add to the Sysdeo response (and in lieu of actually using that plugin), let's assume you're simply in need of vanilla debugging (no ANT build script or customized TomCat settings). Likewise, I just ran this w/ 3.2.3 tomcat5, using Eclipse 2.1.2 and JBoss IDE 1.2.2 so YMMV.
My approach was to set up a virtual src directory to where TomCat converts the JSP into a Servlet (yes, the actual source is made available!). For this example, it's $jboss_home/server/tomcat5/work/jboss.web/localhost/context (where context is your particular app).
There's a catch in adding that directory to your src though, you'll probably need to associate "jasper-runtime.jar" to your project to avoid compilation errors. Another possibility is to remove everything from that folder, as it's regenerated automatically anyway.
Finally, it's just like in the Sysdeo example - add a breakpoint to the generated Servlet code and browse the <url-pattern>. Watch out for "out of synch" type errors and you're good to go!
cheers.
-oz