"unused" module variable not visible in watch window

"unused" module variable not visible in watch window

onkelhotte's picture

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,
Markus

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture

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

Steve
onkelhotte's picture

Thanks, that did the trick.

Login to leave a comment.