Skip to main content
LPola.1
Associate II
January 26, 2022
Solved

phantom breakpoint

  • January 26, 2022
  • 7 replies
  • 1846 views

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

This topic has been closed for replies.
Best answer by LPola.1

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.

7 replies

TDK
Super User
January 26, 2022

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

"If you feel a post has answered your question, please click ""Accept as Solution""."
LPola.1
LPola.1Author
Associate II
January 26, 2022

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.

TDK
Super User
January 27, 2022
Pavel A.
Super User
January 27, 2022

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.

Aleks
Associate III
January 27, 2022

The same problem with CubeIDE, GDB, STLink over SWD. The problem disappeared after I clean project and rebuild alL

LPola.1
LPola.1AuthorBest answer
Associate II
January 27, 2022

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.

Peter BENSCH
Technical Moderator
January 27, 2022

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