cancel
Showing results for 
Search instead for 
Did you mean: 

phantom breakpoint

LPola.1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
LPola.1
Associate II

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.

View solution in original post

7 REPLIES 7
TDK
Guru

> 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
Associate II

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
Guru
Pavel A.
Evangelist III

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

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

LPola.1
Associate II

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
ST Employee

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

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.