Embedded breakpoints not always cleared
I'm working on an embedded target using a Segger J-Link debug probe. One frequent annoying problem I'm running into with CLion, is that it doesn't clear breakpoints from the target if I remove them in the IDE while not connected.
A common use case sequence goes something like this:
- Set a breakpoint in CLion
- Click “Debug ‘projectname'”, which downloads the code and runs it on the target with the debugger attached
- CLion debugger stops at the breakpoint, as it should
- Disconnect from the target
- Clear the breakpoint in CLion
- Click “Debug ‘projectname’” to run the code again
- CLion debugger stops at the now-nonexistent breakpoint location
I think what's happening is that CLion isn't correctly synchronizing the state of its breakpoints with the debug probe, so that any breakpoints leftover from a previous debug session aren't getting cleared when it reattaches.
Please sign in to leave a comment.