1

我正在使用带有 JDK 1.6.0_22 的 Eclipse Indigo (3.7.0),但遇到了问题。

在此处输入图像描述

在上面的屏幕截图中,我设置了两个断点,但只有第 281 行的断点被击中,而不是第 274 行的断点。我尝试通过 Project->Clean 清理我的项目,将 -clean 添加到 eclipse.ini 文件中Eclipse安装目录,重启我的电脑,重启Eclipse,但都不起作用。我正在运行 Windows XP Pro SP3。

有任何想法吗?谢谢!

4

1 回答 1

1

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.

于 2011-09-14T18:04:28.127 回答