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

Debugging internal Fortran subroutine

gmortensen
Beginner
366 Views
I have a Fortran subroutine that has internal subroutines which it calls. The program runs, but once I step into an internal subroutine, all debugging capability is lost. It is as if it does not inherit the debug information from the enclosing subroutine. All the variables are undefined in the debugger.
Does anyone know how to get around this problem.
I am using Intel Fortran 8.0 and MS Studio.

Glen
0 Kudos
1 Reply
Steven_L_Intel1
Employee
366 Views
You're using an unsupported compiler version, but even today's version has that problem. It is an issue we are working on and expect to have it fixed in an update to version 10.0.

I don't know if this works in 8.0, but you can usually use the "Call Stack" pane in the debugger to temporarily set the context to the upper level routine. This should allow you to view the variables.
0 Kudos
Reply