【HELP】How to trace a variable in a function in debug Mode

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

【HELP】How to trace a variable in a function in debug Mode

2,897 Views
commandoccz
Contributor I
In CW 4.6  ,I want to trace a variable in a function. In the Data window ,I input the variable name when I press the "Add Expression..." ,But in the Data window it says"temp  running (unknown identifier)"
How can I know the value of the variable. Is there any HandBook about CW debug skills.
thanks 
Labels (1)
0 Kudos
Reply
3 Replies

1,231 Views
commandoccz
Contributor I
3Q~~~~~HEHE
0 Kudos
Reply

1,231 Views
ubhims
Contributor I
The Targeting Manual for your CodeWarrior should have a section/chapter on Debugging.
 
-Mandeep
0 Kudos
Reply

1,231 Views
CrasyCat
Specialist III
Hello
 
There is a FAQ on that topic.
    Go to www.freescale.com and search for FAQ-27481
 
Please note that if the variable is a local variable the variable value might not be saved on the stack for optimization purpose.
 
In that case the variable value will not be available in the Data Window.
 
 
CrasyCat
0 Kudos
Reply