Sign in to follow this  
asdqwe

debugging in VC++

Recommended Posts

asdqwe    100
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
Driv3MeFar    1080
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this