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?
Check that your project is in the Source tab in Debug Configurations. If it's not then the breakpoints are ignored.
Upon reaching a breakpoint, by default, GDB pauses all threads until the user types cont . The user can change the behavior to request that GDB only pause the threads that hit a breakpoint, allowing other threads to continue executing.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With