Skip to main content
AN.4
Associate II
January 18, 2022
Question

How to set conditional breakpoint in STM32Cube IDE? syntax?

  • January 18, 2022
  • 3 replies
  • 5010 views

..

This topic has been closed for replies.

3 replies

ST Technical Moderator
January 19, 2022

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
AN.4
AN.4Author
Associate II
January 19, 2022

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
April 18, 2023

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.