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

Module variable not recognised in debugger

Anthony_Richards
New Contributor I
634 Views

I want to look at a module variable, so following the documented technique for doing this, in the Watch window I type

MODULENAME::VARIABLENAME

The debugger replies that the variable is not recognised, even though the variable is defined as a PARAMETER in the module and calculations up to that point use its value.
The module is in a separate Fortran file. Is that the problem?

I am using VS 2012 Pro.

0 Kudos
2 Replies
Lorri_M_Intel
Employee
634 Views

Ah, a PARAMETER?  When you built the module, did you use the /debug-parameters switch?

By default, parameter names only "live" during the compilation stage, and are not put into the debug symbol table.   The switch above will change that default.

               --Lorri

 

0 Kudos
Anthony_Richards
New Contributor I
634 Views

Thanks, Lorri.

0 Kudos
Reply