I am using Eclipse 开发者_StackOverflowIndigo (3.7.0), with JDK 1.6.0_22, and I am running into an issue.
In the screenshot above, I set two breakpoints, but then only the breakpoint at line 281 is hitting, not the one at line 274. I tried cleaning my project via Project->Clean, adding -clean to the eclipse.ini file in the Eclipse install directory, restarting my computer, and restarting Eclipse, but they all didn't work. I am running Windows XP Pro SP3.
Any ideas? Thanks!
I fixed the problem. The project I'm working on requires the Scala IDE plugin for Eclipse as I just found out that there are some Scala code that I didn't write. The Scala compiler was needed to work in conjunction with the Java compiler, so in the end, the Java code that I was working on wasn't compiling into new bytecode, which is the reason why the breakpoints were not being hit. It's just one of those very rare things that happen.
精彩评论