cancel
Showing results for 
Search instead for 
Did you mean: 

How to set conditional breakpoint in STM32Cube IDE? syntax?

AN.4
Associate II
 
3 REPLIES 3
Imen.D
ST Employee

Hello @AN.4​ ,

I advise you to refer to the UM2576, in section "2.4 Setting breakpoints" section.

I hope this helps !

If my answer satisfy your need, please select it as Best so that this thread will marked as solved.

Thanks

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
AN.4
Associate II

Thanks for response.

I want to set the condition for breakpoint, so that when condition is true then breakpoint occurs.

In breakpoint properties -> common -> condition, you can set the condition.

I want to know the syntax to write the if condition for the same.

0693W00000JMYCWQA5.png

ZHan.2
Associate II

It's a boolean expression in C/C++; For example, if you want this breakpoint breaks only when the global variable global_a is equal to 100, just input global_a == 100.