• Advertisement
Sign in to follow this  

debugging in VC++

This topic is 3783 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I'm using VC++ 2003 with a simple program. I want to Watch (using Watch window) the value of a variable. Every variable works well but the ones local to functions- they give all sorts of "Symbol "variable name" not found" errors. Please help me out with this one. (Oh and I've searched the help (MSDN) which is useless for this.)

Share this post


Link to post
Share on other sites
Advertisement
Are you in the same scope in which the variables are declared? Local variables will be destroyed when they fall out of scope, so if you are not in the same scope as the variable, it will not exist, and thus, not be found by the debugger.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement