Sign in to follow this  

debugging in VC++

This topic is 3716 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
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

This topic is 3716 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.

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