CW 10.1 - How to break debugger when variable changes

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

CW 10.1 - How to break debugger when variable changes

1,111件の閲覧回数
ignisuti
Contributor IV

I’m using the Multilink Universal debugger with a 6-wire BDM cable to debug a MCF51CN128 Coldfire MCU.

 

How can I get the debugger to 'break' on the line of code causing one of my variables to change values?

ラベル(1)
0 件の賞賛
返信
1 返信

942件の閲覧回数
CrasyCat
Specialist III

Hello

 

    I am not an expert on MCF51CN128, but for other MCUs I used watchpoints for this purpose.

    To set a watchpoint:

          - In the Variable Windows display the variable you want to track

          - Click right on the variable name and select watchpoint

          - Adjust settings of the watchpoint to whatever you want to track.

          - Click on OK.

 

  Note that watchpoint may not be supported on all MCUs as it requires some HW resources to function properly.

  But it might be worth a try.

      

CrasyCat

0 件の賞賛
返信