Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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?

like image 501
Andy Avatar asked Aug 09 '10 14:08

Andy


People also ask

Why Breakpoints are not working in Eclipse?

Check that your project is in the Source tab in Debug Configurations. If it's not then the breakpoints are ignored.

Does a breakpoint pause all threads?

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.


3 Answers

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.

enter image description here

like image 118
Daniel Bleisteiner Avatar answered Sep 23 '22 06:09

Daniel Bleisteiner


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.

like image 30
Romain Hippeau Avatar answered Sep 21 '22 06:09

Romain Hippeau


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.

like image 44
Maël Avatar answered Sep 22 '22 06:09

Maël