Why local variables values are displayed as ?

I'm using Keil microVision4 debugger. As I'm stepping through my functions, Call Stack + Locals window displays all local variables values as <not in scope>. Why am I not seeing the values of the local variables?

Parents
  • Why am I not seeing the values of the local variables?

    Quite likely for exactly the reason the tools already told you about: because at a given point in time, many of those variables simply don't exist. Local automatic variables only exists while the code block they're in, i.e. their "scope", is being executed.

Reply
  • Why am I not seeing the values of the local variables?

    Quite likely for exactly the reason the tools already told you about: because at a given point in time, many of those variables simply don't exist. Local automatic variables only exists while the code block they're in, i.e. their "scope", is being executed.

Children
More questions in this forum