This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse is not puasing at debug points

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • 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.
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
I have cleaned/rebuild the project number of times. That was the first thing that i did :s
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure the code with the breakpoints is being reached?
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic