How to watch variables live

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to watch variables live

2,513件の閲覧回数
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)
0 件の賞賛
1 返信

2,266件の閲覧回数
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