wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Debugging Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply locked New topic
Author

Debugging Eclipse

Ashok Jag
Greenhorn

Joined: Sep 21, 2005
Posts: 18
Hello,

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 !

Thanks
Ashok
Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 282
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.
Ashok Jag
Greenhorn

Joined: Sep 21, 2005
Posts: 18
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"

Click on debug on Eclipse . I see

Java HotSpot(TM) Client VM[localhost:8000]
Daemon Thread [TP-Monitor] (Running)
Daemon Thread [TP-Processor4] (Running)
Daemon Thread [TP-Processor3] (Running)
Daemon Thread [TP-Processor2] (Running)
Daemon Thread [TP-Processor1] (Running)
Thread [http-8080-Monitor] (Running)
Daemon Thread [http-8080-Processor25] (Running)
Daemon Thread [http-8080-Processor24] (Running)
Daemon Thread [http-8080-Processor23] (Running)
Daemon Thread [http-8080-Processor22] (Running)
Daemon Thread [http-8080-Processor21] (Running)
Daemon Thread [http-8080-Processor20] (Running)
Daemon Thread [http-8080-Processor19] (Running)
Daemon Thread [http-8080-Processor18] (Running)
Daemon Thread [http-8080-Processor17] (Running)
Daemon Thread [http-8080-Processor16] (Running)
Daemon Thread [http-8080-Processor15] (Running)
Daemon Thread [http-8080-Processor14] (Running)
Daemon Thread [http-8080-Processor13] (Running)
Daemon Thread [http-8080-Processor12] (Running)
Daemon Thread [http-8080-Processor11] (Running)
Daemon Thread [http-8080-Processor10] (Running)
Daemon Thread [http-8080-Processor9] (Running)
Daemon Thread [http-8080-Processor8] (Running)
Daemon Thread [http-8080-Processor7] (Running)
Daemon Thread [http-8080-Processor6] (Running)
Daemon Thread [http-8080-Processor5] (Running)
Daemon Thread [http-8080-Processor4] (Running)
Daemon Thread [http-8080-Processor3] (Running)
Daemon Thread [http-8080-Processor2] (Running)
Daemon Thread [http-8080-Processor1] (Running)
Daemon Thread [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (Running)
Daemon Thread [Store userCache Expiry Thread] (Running)
Daemon Thread [Store userCache Spool Thread] (Running)
Thread [main] (Running)


When I try to open my project in the brwoser I dont see my page :-( and in run mode I cud see

In debug mode I try to use this url

http://localhost:8000/fsdc/login.jsp

In Run Mode I am using 8080 port

http://localhost:8080/fsdc/login.jsp

Is it right? Please help wat shud be the problem and if I see the page will the breakpoint will work?

Please help!

Thanks
Ashok
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debugging Eclipse