value doesn't change if I use 'add watch window'

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If I use the 'add watch window', I do not see anything change. I suppose if you add a variable to 'add watch window' I should see the variable during simulation? But no...who can tell me how this works?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well two things:

1) the watch window only updates when execution stops. So either run to a breakpoint or, for a slowly updating display, use "auto-step"

2) none of that's likely to work unless the variable is being update in RAM so either build the entire program without optimisation or just make the selected variables "volatile"