Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUnable to set breakpoints without restarting application during debug
https://www.eclipse.org/forums/index.php/mv/msg/1083061/1749702/#msg_1749702
Whenever I try and create breakpoints when starting up a new debug session, I never seem to hit them until the application is restarted, at which point I seem to hit them fine.
Looking closer into this, I see that when I double click on the left margin to set a breakpoint, a blue circle with a check mark next to it appears, but then a half-second later, the check mark disappears and only the blue circle remains. I see similar behavior in the Breakpoints tab. A new breakpoint shows up, and there is a check in the checkbox to the left, but after that is the same blue circle with a check mark next to it that disappears almost immediately, followed by the name of the file and the line number. Once I terminate and restart the application, I get a check mark next to all the circles and I can hit my existing breakpoints, but I continue to not be able to add and hit new active breakpoints, which makes debug very frustrating.
See the screenshot below for an example. I created the first breakpoint in the list during a previous run of my application and can hit it during this run, and created the second breakpoint during the current run but won't be able to hit it this run.
Running Version: 3.8.1 (included by default in Ubuntu 16.04 LTS)]]>Kevin Smith2016-12-09T20:45:42-00:00Re: Unable to set breakpoints without restarting application during debug
https://www.eclipse.org/forums/index.php/mv/msg/1083061/1749727/#msg_1749727
I recommend you try getting Eclipse C/C++ dev tools from Eclipse.org, using Neon.1 aka 4.6.1 which includes a newer CDT. It can be installed independently.
Let us know how you get on, especially if you still have problems.
HTH
Jonah
]]>Jonah Graham2016-12-10T10:13:20-00:00Re: Unable to set breakpoints without restarting application during debug
https://www.eclipse.org/forums/index.php/mv/msg/1083061/1848310/#msg_1848310
i'm having the same exact problem today with last Eclipse build and Debian 11.
Breakpoints work fine if set before starting the application but they cause the application to be terminated (SIGINT(2)) if added while already debugging...