问题
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. 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?
回答1:
The Eclipse debugger pauses if the code throws an exception - at least it does for me (maybe this can be toggled). Just un-pause the thread and you'll most likely see a stacktrace being printed to STDERR.
回答2:
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.
回答3:
I had the same problem I apparently had some hidden breakpoints, setting a new one then clearing all break points solved the issue for me.
回答4:
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.
回答5:
Try Remove all breakpoints from the Breakpoints view (hidden by default, Window > Show view > Other... > Debug > Breakpoints).
This solved it for me.
回答6:
it could also be waiting for user input, or a particular action to take place so it can continue.
来源:https://stackoverflow.com/questions/3441153/eclipse-pausing-without-a-breakpoint