简体   繁体   English

Eclipse暂停没有断点

[英]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. 尝试创建一个断点,然后摆脱所有断点,看看它是否仍然发生。

The Eclipse debugger pauses if the code throws an exception - at least it does for me (maybe this can be toggled). 如果代码抛出异常,Eclipse调试器会暂停 - 至少它对我有用(也许这可以切换)。 Just un-pause the thread and you'll most likely see a stacktrace being printed to STDERR. 只需取消暂停该线程,您很可能会看到堆栈跟踪被打印到STDERR。

在此输入图像描述

我有同样的问题,我显然有一些隐藏的断点,设置一个新的然后清除所有断点为我解决了问题。

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.

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