debugging in VC++

Started by
1 comment, last by chipmeisterc 16 years, 6 months ago
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.)
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.
unless it is static :)

This topic is closed to new replies.

Advertisement