• Post Reply 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

Eclipse is not puasing at debug points

 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

I am using Eclipse 3.5 (galileo) and till yesterday it was working fine for my web application debugging. but since today, it has been acting weirdly. I have put number of break points and it does not stop at any .. ..

I tried these

- Cleaned workedspace
- Created the project from scratch (copied the exisiting source in it)
- re-installed the eclipse (unpacked from archive file)

and in all cases .. I got no success .. There were some moments when it stopped on some breakpoints .. but its upto eclipse .. if it would like it stops on breakpoints .. else it not ..


PLEASE PLEASE HELP Me - i can't go furterh without debugging and i don't want to add .. "system.out.println" everywhere.
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Evidently either your debugger isn't connecting to the server or the server is referencing classes other than the ones that you have your breakpoints in. Since the internal debugger for Eclipse is the general remote debugger, maybe some of the hints in the link at the bottom of this thread might help.

Of course, you should be able to see your target application's threads in the Debug view. If you don't, you're DEFINITELY not connecting!
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
which links .. i can't see any link whcih can help me in this regard.

I can see the threads in debug view - but somehow breakpoints are not being hit. how come i make sure that the debugger is linked properly with classes source?

It do sometime stops on breakpoints - but i can never tell will it stop this time or not. I have system.out.println everywhere now :s
 
Tim Holloway
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From that description it sounds like your compiled classes don't match the source code file that the debugger's attempting to match them with.

Try rebuilding the app using those source files and debug that.
 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have cleaned/rebuild the project number of times. That was the first thing that i did :s
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure the code with the breakpoints is being reached?
 
Tim Holloway
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Are you sure the code with the breakpoints is being reached?



There were some moments when it stopped on some breakpoints .. but its upto eclipse .. if it would like it stops on breakpoints .. else it not ..



This is the kind of thing that happens when the source code in Eclipse doesn't match the compiled classes on app actually running under the debugger. When the program counter in the debugger hits a breakpoint, the debugger pauses and the debugging client is informed. However, when the source code isn't in sync, the displayed line-at-breakpoint isn't the actual line that triggered the breakpoint.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic