Skip to main content
FDi L.228
Associate II
Question

Live Expression view "Failed to evaluate expression"

Hello,

I'm currently using STM32CubeIDE (version 1.1.0) to write and debug a c++ program on a NUCLEO F767ZI.

I'm trying to use the "Live Expression" but it either doesn't update the variables live (it updates them when I pause the program") or it says "Failed to evaluate expression".

What is the correct way to configure the debugger?

My current configuration is:

  • Nucleo connected through the on-board stlink
  • the default values as in the screenshot

0690X00000AqPwxQAF.png

This topic has been closed for replies.

6 replies

FDi L.228
FDi L.228Author
Associate II

Update: it works with global variables. Is this the right behaviour or is this a bug? Will tracing local variables be available in the future?

Ozone
Principal

You can trace local variable ONLY in the context they exist.

Otherwise they are just stack values with a whatsoever meaning.

Try to understand the C language concepts behind variable lifetime, visibility, and related memory allocation concepts.

FDi L.228
FDi L.228Author
Associate II

Thanks, I passed programming 101.

I thought that it could maybe track variables on the stack

Visitor II

Try view the "expressions" and not the "live expressions". This worked for me 

Visitor II

nvm i misread :)