• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse breakpoint problem: "a break point already exists at the next valid location"

 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Using the last Eclipse (Galileo).
I am trying to set a break point at some point of a the main method.
But Eclipse will not let me do it, instead it says at the bottom of the screen in red lettering "a break point already exists at the next valid location --- line 140".
Line 140 is the end of the main method.
So it does set a break point there, but why not where I wanted?
Other files in the project do not exhibit that problem.

Any idea what is wrong? I'd appreciate your help.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open your project.
Switch to Debug perspective (Window->Open Perspective->Debug)
Select the Breakpoints tab. Here you will see a list of all the set breakpoints. Does your main method line 140 show up here?
Click on Remove All Breakpoints in the Breakpoints tab.
Switch to Java perspective and retry setting the breakpoint
 
Angel Jordan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having the exact same problem. Did you find the reason already why it's happening like that?

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic