Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Debugging Eclipse

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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.
    Bookmark Topic Watch Topic
  • New Topic