2022-01-26 05:40 AM
Dear support,
When debugging code in Attolic TRUEStudio I am facing a fantom breakpoint phenomena. Sometimes I see this report from Console
Temporary breakpoint
1, main () at ..\src\main.c:71
71 int ret = 0;
No breakpoint number 2.
It's a showstopper.
Sometimes that breakpoint disappears without my intervention. I see another post here also unresolved. Is there some advice about what to do in such cases?
Thank you
Solved! Go to Solution.
2022-01-27 02:05 AM
Hi, ok I have removed all breakpoints, clean project, exit IDE and reopen. Problem seems to dissapear for now. I am quite aware because it happens that program stops at that phantom breakpoint even if I exited studio and let program run. The most secure solution for me is to build release version.
2022-01-26 06:10 AM
> Is there some advice about what to do in such cases?
Restart IDE and/or computer, close/open project, update to supported IDE.
Might be able to see what breakpoints it thinks are there using debugger commands.
2022-01-26 06:52 AM
Hi
unfortunatelly this annoys me for more than week. Restarted IDE/computer many times. I don't use breakpoints at all so the only one visible breakpoint is at start of main.
2022-01-26 06:48 PM
Sounds like this
https://community.st.com/s/question/0D53W000004lnzT/problem-with-phantom-breakpoints-in-truestudio
Or this
https://electronics.stackexchange.com/questions/433394/atollic-debug-breakpoint-problem-stm32
2022-01-26 07:14 PM
IIRC another advise was to start from a clean eclipse workspace and import the projects...
<p>
Also, clear all breakpoints, then set new breakpoint at main() or where you want, and click on reset target. Then the debugger should catch up.
2022-01-26 07:25 PM
The same problem with CubeIDE, GDB, STLink over SWD. The problem disappeared after I clean project and rebuild alL
2022-01-27 02:05 AM
Hi, ok I have removed all breakpoints, clean project, exit IDE and reopen. Problem seems to dissapear for now. I am quite aware because it happens that program stops at that phantom breakpoint even if I exited studio and let program run. The most secure solution for me is to build release version.
2022-01-27 04:56 AM
OK, when your question is answered, please mark this topic as answered by choosing Select as Best for the preferred answer. This will help other users find that answer faster.
/Peter