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

view a variable declared in a module

wen
Beginner
361 Views

I am using MSVS2005 and IVF 9.1.

I have a variable declared in a module but not inside any subroutine. During the debugging process, no value appears when I move the curser over that variable in a subroutine. If I set it as one of QuickWatch, it shows Undefined variable xxx in the Watch 1 panel.

How could I see the value of this variable?

Wen

0 Kudos
2 Replies
Steven_L_Intel1
Employee
361 Views
This is documented in the Building Applications manual section on using the debugger. In the watch window, use the syntax modname::varname. You may not need this if the variable is referenced in the current program unit.
0 Kudos
wen
Beginner
361 Views

Steve,

Thank you. I read the manual some time ago and forgot about many of the features. I have just reviewed the debugger section.

Wen

0 Kudos
Reply