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

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