- This topic has 5 replies, 2 voices, and was last updated 21 years, 2 months ago by
Riyad Kalla.
-
AuthorPosts
-
cfarmergaMemberHi. I’m interested in MyEclipse primarily for JSP debugging, but I can’t seem to set any breakpoints in my jsp files in eclipse. I am using Tomcat 5.0, Eclipse 2.1.1, and the latest MyEclipse version. I tried the HelloWorld walkthrough, and everything worked properly except for this jsp breakpoint issue. I can execute jsp’s deployed from MyEclipse, and I can even set breakpoints and debug in servlets I created.
Can someone give me some pointers?
thanks,
Chris– System Setup ——————————-
Operating System and version:
Eclipse version: 2.1.1
Eclipse build id: 200306271545
Fresh Eclipse install (y/n): n
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory:
MyEclipse version:
Eclipse JDK version: 1.4.2
Application Server JDK version: 1.4.2
Are there any exceptions in the Eclipse log file? no– Message Body ——————————-
undefined
Riyad KallaMemberChris,
There is a bug in Tomcat 5.0.16 that caused JSP breakpoint mapping to way off. There is a workaround in the bug forum here:
https://www.genuitec.com/forums/topic/debugging-jsps-with-tomcat-5-0-16-closed/or better yet, you can upgrade to Tomcat 5.0.18 here:
http://mirrors.mix5.com/apache/jakarta/tomcat-5/v5.0.18/bin/jakarta-tomcat-5.0.18.exeLet me know if that helped.
cfarmergaMemberHi. Thanks for the suggestions, but I think my problem is different than I may have implied in my message. I already have Tomcat 5.0.18. My immediate problem is more of an IDE issue, I think, than a server issue. It’s not that the breakpoints that I set are not being hit… It’s that I simply can’t set any breakpoints. The usual way to set them in Eclipse (doubleclicking the left margin) doesn’t work in my jsp files. As I said, it works for servlets and for other generic java code, but just not for jsp’s. I’m not sure what could be different about my setup.
thanks,
Chris
Riyad KallaMemberChris,
We just had someone else report the same probelm and it turned out another plugin had registered a different editor for JSP pages. Right click on your JSP page, and select “Open With-> MyEclipse JSP Editor”. With this editor you can set break points and such exactly as you do with the Java editor (clicking in the gutter).Let me know if that fixes it.
cfarmergaMemberThanks for the suggestion. That worked nicely. I had installed Lomboz a while back, but was never really happy with it. It had snagged the jsp extension. Setting MyEclipse as the jsp editor allowed me to set breakpoints and they get hit when I navigate to my pages.
Thanks for your help!
Riyad KallaMemberNo problem, glad its working.
-
AuthorPosts