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...

Share:
13,865
sdfwer
Author by

sdfwer

Updated on June 08, 2022

Comments

  • sdfwer
    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
    Admin about 12 years
    Which means you need to make sure the breakpoints are compiled into your .class files.
  • sdfwer
    sdfwer about 12 years
    Good answer. What would you recommend I do to fix?
  • Olivier Refalo
    Olivier Refalo about 12 years
    Rebuild your project from sources. Validate compiler setting and paths
  • sdfwer
    sdfwer about 12 years
    I love Project > Clean however after 5 times I am thinking my eclipse is dirty (If you know what I mean ;) )
  • Sabir Khan
    Sabir Khan about 8 years
    Somehow this was the case for me. I don't recall turning that on. Any idea , what could have caused Skip all breakpoints selected?
  • alexander
    alexander over 4 years
    @AsavPatel Because the OP can accept whatever he/she likes. And he/she likes his/her answer more.