I'm using the intel parallel studio (XE2018 update 1 cluster edition).
I found that a variable globally defined in a module is shown as undefined variable in the "watch" window, as depicted below, even though the module is declared as "USE" in the subroutine.
I attached a sample code illustrating this issue.
If I use this variable in the subroutine, then the "watch" window shows the variable properly. But, if it is not used explicitly, it is declared as undefined variable.
In my opinion, even though the variable ("m_tot" in the attached code) is not explicitly used in the subroutine, it needs to be a defined variable since the subroutine use the module where the variable is defined.
I hope to get some comments on this.
Below is the sample code.
DOUBLE PRECISION M_TOT
c = a + b
The debugger only shows module variables that are actually used in a subprogram you can explicitly watch modulename::varname if you want to. IMO to show all module vars would in many cases be too much information.