Eclipse not recognizing breakpoints
13,865
Solution 1
Restarted eclipse and this time I was able to debug properly. Strange bug I am uncertain of knowing the cause and effect.
Solution 2
Make sure that 'Run > Skip all breakpoints' is not enabled.
Solution 3
there can be many many reasons:
The most common ones:
- .java and .class are out of sync
- wrong version of the runtime JVM
- debug information removed from the generated class
- classpath mismatch, for instance eclipse compiles into bin/ and your runtime picks up classes from classes/ (this assumes, you also compile from the command line)
- Bad Eclipse installation
First try cleaning the project by using the clean function
Project > clean...
Author by
sdfwer
Updated on June 08, 2022Comments
-
sdfwer almost 2 years
I am having this weird bug in eclipse when setting my breakpoints it just over lap it without passing through the breakpoint where the method is called. I know it keeps bypassing it for the reason that the only method that is being called is on a lot of breakpoints.
Did anyone encounter this kind of problem or know a fix?
-
Admin about 12 yearsWhich means you need to make sure the breakpoints are compiled into your .class files.
-
sdfwer about 12 yearsGood answer. What would you recommend I do to fix?
-
Olivier Refalo about 12 yearsRebuild your project from sources. Validate compiler setting and paths
-
sdfwer about 12 yearsI love Project > Clean however after 5 times I am thinking my eclipse is dirty (If you know what I mean ;) )
-
Sabir Khan about 8 yearsSomehow this was the case for me. I don't recall turning that on. Any idea , what could have caused
Skip all breakpoints
selected? -
alexander over 4 years@AsavPatel Because the OP can accept whatever he/she likes. And he/she likes his/her answer more.