How to watch variables live

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to watch variables live

2,678 次查看
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.

标签 (1)
标记 (4)
0 项奖励
1 回复

2,431 次查看
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