简体   繁体   English

Eclipse Indigo无法达到断点

[英]Eclipse Indigo Not Hitting Breakpoint

I am using Eclipse Indigo (3.7.0), with JDK 1.6.0_22, and I am running into an issue. 我在JDK 1.6.0_22上使用Eclipse Indigo(3.7.0),但遇到了问题。

在此处输入图片说明

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. 在上面的屏幕截图中,我设置了两个断点,但是仅击中了第281行的断点,而不是第274行的断点。我尝试通过Project-> Clean清理项目,将-clean添加到eclipse.ini文件中。 Eclipse安装目录,重新启动我的计算机,然后重新启动Eclipse,但它们均不起作用。 I am running Windows XP Pro SP3. 我正在运行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. 我正在从事的项目需要用于Eclipse的Scala IDE插件,因为我刚刚发现有些我没有编写的Scala代码。 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. Scala编译器需要与Java编译器一起使用,因此最后,我正在处理的Java代码没有被编译为新的字节码,这就是未命中断点的原因。 It's just one of those very rare things that happen. 这只是发生的非常罕见的事情之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM