CW 10.1 - How to break debugger when variable changes

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

CW 10.1 - How to break debugger when variable changes

1,116 次查看
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 回复

947 次查看
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 项奖励
回复