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

can't debug

phost75
Beginner
594 Views

my VS Version 17.14.13 and oneAPI  version  2025.2. I found that x86 platform can't compile fortran for lacking support for win32, i can compile or run the porgram in x64, but i can't debug the program for all the variables are undefined.

0 Kudos
1 Reply
jimdempseyatthecove
Honored Contributor III
320 Views

Please make a small reproducer. The exercise may be enlightening.

Where are "all the variables"? (local to procedure, module, named common, in a derived type, parameters, ...)

If variables are within a module, then prefix the variable with the module name and ::

jimdempseyatthecove_0-1757078887974.png

In my case the module name was "mod_toss" (the "mod_" is not a compiler decoration, rather naming choice by me)

Also note, in any procedure, variables outside of its scope, will not be visible while within that procedure.

And, should you hit a runtime error (e.g. divide by 0), the call stack will likely show the current stack level is that of the error reporting procedure. To correct this, open the Call Stack debugger window and double click on the offending procedure level.

 

Jim Dempsey

0 Kudos
Reply