This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugging question

Hi guys,

I have some trouble doing the "right kind" of debugging with Keil's µVision.

1.
For example I want to add the variable "test" to my watch list. When I set a breakpoint after a statement performing some operation on "test", I only get "out of scope" in the Watch-List.

So I tried declaring "test" as a global volatile variable. The out of scope is gone now. Is that the right way to do it? This is a little bit annoying, if I have to do it with everything I wanna watch.

2.
Then I don't know how to tell the watch list to auto-update at each breakpoint. Does this work at all?

For example I have
test= 0;
BREAKPOINT
test++;
BREAKPOINT

the watchlist still shows
0x00000000

when reaching the second breakpoint.

But now, when I remove "test" from the list and add it again it says
0x00000001

Do I have to re-add all of the variables I wanna watch everytime when I want to know the current value?

Thanks a lot!

Parents Reply Children
No data