I'm just learning to use Eclipse (v4.2.2), although I have several years of experience in Java. I've noticed an odd problem with breakpoints: once I set them, they don't always stay put.
While I worked on my first Eclipse project I noticed that breakpoints often wandered from the place where I set them into a near-by comment and empty line, where Eclipse would not let me set a breakpoint directly. Sometimes I was able to remove the wandering breakpoints by double-clicking them, or by right-clicking them and selecting "Toggle breakpoint." Sometimes these actions had no effect. Sometimes I was unable to clear a breakpoint, then I returned to it after doing some other work and found I could clear it.
I assume that under some (unidentified) conditions, Eclipse is letting a breakpoint stay at the same line number when editing makes the line it was set on move up or down. I don't understand why this is happening or how to stop it. (It's not because I've been editing the source files outside Eclipse; I haven't.)
Jonathan Sachs wrote:(It's not because I've been editing the source files outside Eclipse; I haven't.)
Do you use some version control system? Do you operate it outside of the IDE? This is what I do and this obviously can bring breakpoints away from their intended lines.
My IDE has a special view for all breakpoints, I can always delete them there (once in a while I do a big purge ). Not being able to delete a breakpoint in code editor sounds like a bug, but that breakpoins view might allow you work-around the issue.