"unused" module variable not visible in watch window

"unused" module variable not visible in watch window

Hi there,
I have a question regarding watching variables in VS2003.

I have a big module globalVariables that is used in nearly every subroutine and function. While debugging I can only watch the variables that are actually used in that subroutine or function where Ive set the breakpoint. All other variables are undefined variables the value column says. But sometimes I want to get the value of an variable, that is not used in that subroutine.

Is there a way to do that? It was normal in VS6.

Thanks in advance,

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

If it is a module variable, you can add a watch for modname::varname.

Retired 12/31/2016

Thanks, that did the trick.

Leave a Comment

Please sign in to add a comment. Not a member? Join today