[英]Eclipse pausing without a breakpoint
While debugging my project in Eclipse, it will (repeatably, at the same point in the code) pause execution as if it's reached a breakpoint. 在Eclipse中调试我的项目时,它(可重复地,在代码中的同一点)暂停执行,就像它到达断点一样。 No exceptions are thrown, the project has no breakpoints, and if I hit resume, it carries on without a problem. 没有抛出异常,项目没有断点,如果我点击简历,它会继续没有问题。
What could be causing this behaviour? 什么可能导致这种行为?
Your code and the binaries that you are debugging are not in sync. 您正在调试的代码和二进制文件不同步。
Try creating a break point and then getting rid of all breakpoints and see if it still happens. 尝试创建一个断点,然后摆脱所有断点,看看它是否仍然发生。
我有同样的问题,我显然有一些隐藏的断点,设置一个新的然后清除所有断点为我解决了问题。
Try Remove all breakpoints
from the Breakpoints
view (hidden by default, Window
> Show view
> Other...
> Debug
> Breakpoints
). 尝试从“ Breakpoints
视图中Remove all breakpoints
(默认情况下隐藏,“ Window
>“ Show view
>“ Other...
>“ Debug
>“ Breakpoints
)。
This solved it for me. 这解决了我。
Create a fresh workspace and import your project to this newly created workspace. 创建一个新的工作区并将项目导入到这个新创建的工作区。 The problem should be gone, especially if the problem was caused by corrupt workspace metadata. 问题应该消失,特别是如果问题是由损坏的工作区元数据引起的。
它也可以等待用户输入,或者发生特定的动作,以便继续。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.