How to watch variables live

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to watch variables live

2,587 Views
raphael_sommer
Contributor II

Hello, 

I am working with S32DS for Arms with the latest updates and the S32K146 EVB.

I developed some code and want to debug it now, but it seems like I can't work in Debug mode. 

I want to live monitor my variables to find my errors within the code. 

How do I monitor the variables, I can't see them

pastedImage_1.png

I found a "workaround" using expressions and not variables

pastedImage_3.png

But as soon as I run my program, all values disappear

pastedImage_4.png

What am I doing wrong to monitor my variables? 

It's really hard for me to progress further without a debug mode.

Labels (1)
0 Kudos
1 Reply

2,340 Views
stanish
NXP Employee
NXP Employee

Hi,

The variables view automatically shows just the local variables.

I'd recommend you to use Expressions View instead. Unfortunately this view shows the content of variables only in a debug halt.

If you want to see the variables while the target MCU is running I'd suggest you to use Real Time Expression view.

This specific view is available only for Pemicro probes (including OpenSDA).

Please check this thread:

https://community.nxp.com/message/916645#comment-916979 

Hope it helps.

Stan