I am trying to debug my application using Eclipse(3.3) and Tomcat 5.0.28, I had gone through some solutions posted in this forum but of no help..I can run my application on debug mode but it is not stopping at the breakpoint and I am not able to see the variables value too.
I see the class files getting compiled under WEB-INF/classes directory though, I am missing 1 important step here, for which I need your help in pointing it out.
Do I need to setup Java Debug VM options somewhere in the latest version of Eclipse 3.3.0? And wat else I need to do to setup debug mode enabled in both JSP and Java files ?
Appreciate your help !
Joined: Jul 31, 2001
A couple of possibilities:
1) You have Build Automatically disabled. The class file is out-of-sync with the source. If your breakpoint (in the source) is on a line that is whitespace, comment, etc. in the class file, the debugger will not stop.
2) You have inadvertantly enabled Skip All Breakpoints in the Breakpoints view. Look at the Breakpoints view for this icon.
Joined: Sep 21, 2005
Thanks for your reply!.
I removed the com directoory under WEB_INF/classes and started the tomcat I see the latest class files getting compiled. I made sure I put breakpoint not on spaces..
I checked Whether I skipped all Breakpoints..but I did not.
Here is what I am doing, I have added on catalina.bat for Tomcat 5.5.4 set JPDA_TRANSPORT=dt_socket set JPDA_ADDRESS=8000
on eclipse - Run --> Open Debug Dialog Remote Java Application --> New , entered
host as "localhost" port as "8000"
Started Tomcat on Cmd prmpt In the output, I can see this msg "Listening for transport dt_socket at address: 8000"
Ashok, I don't quite know what is going on here but you seem to be asking the same questions on two threads at the same time. We would prefer you to stick to a single thread, since cross-posting leads to confusion and waste of time.
Unfortunately most of the answers seem to be going to the other thread, the one you hijacked from kartik krishnan. It would have been better if you could have stuck with your own thread instead of jumping in and posting your question on somebody else's thread.
However to me it looks like the kartik krishnan thread is more useful now. So I'm going to close this one.