Skip to main content
RFirm
Associate
May 28, 2020
Question

watch/edit a variable value in realtime when debugging

  • May 28, 2020
  • 2 replies
  • 1710 views

Hello!

Is it possible to watch/edit a variable value realtime when debugging in STM32CubeIDE without setting breakpoints? Like the Watch window of uKeil.

Or any other workaround that i could change values realtime without stoping the application?

2 replies

TDK
Super User
May 28, 2020

STM32CubeMonitor can do that.

"If you feel a post has answered your question, please click ""Accept as Solution""."
yang2
Associate III
May 29, 2020

Hello, all,

I also have same question.

I use IAR as IDE for STM32F303 development before, but recently I change platform to CubeIDE.

In IAR environment, I can edit/watch variable realtime on debugging.

However, In CubeIDE, I can't edit variable, only monitor available.

Can anyone teach me how to do that?

Does CubeIDE support this feature(Editing variable on line)?

Visitor II
April 9, 2025

Hello,

Sorry to be so late, I was searching for this when I found this thread...

After some tries, I found it is possible in stm32cubeide :

Locate the variable to modify in the Variable window, right clic on the variable -> View Memory.

In the displayed Memory window, go to the adress of your data : you can easily modify your variable here.