Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29386 Discussions

"unused" module variable not visible in watch window

onkelhotte
New Contributor II
783 Views

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

0 Kudos
2 Replies
Steven_L_Intel1
Employee
783 Views
If it is a module variable, you can add a watch for modname::varname.
0 Kudos
onkelhotte
New Contributor II
783 Views
Thanks, that did the trick.
0 Kudos
Reply