Software Archive
Read-only legacy content
17060 Discussions

Watch window not correctly reporting variables

Intel_C_Intel
Employee
517 Views
I have a problem with the watch window which states that some of my variables are undefined which I know is untrue. This occurs in module procedures and can be confusing and annoying. Does anyone know if this can be fixed.
I encounter the problem in my Fortran console applications. I can produce a small example project if it will help.
0 Kudos
2 Replies
Intel_C_Intel
Employee
517 Views
Are the undefined variables module level variables? If so, here's a quote from the FAQ:

To see module variables from within a routine that uses the module, or from within routines contained in the module, specify :: in a watch window. For example, if you wanted to see variable BAR that was defined in module FOO, you would specify "FOO::BAR" in a watch window.'

hth,
John
0 Kudos
Casimir_K_
Beginner
517 Views
The current (6.1A) state of this "feature" is, that this happens only within the module procedures. Using the module from outside will show all the variables. This is really annoying as it hampers object oriented programming with private variables: No tool tips to show variables etc.
0 Kudos
Reply