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

intel fortran 8.0 and visual studio debugger

gmortensen
Beginner
917 Views
I have a project which I built using Intel Fortran 8.0 and am trying to debug it in MS Visual Studio. I can set a break point but when I run the code in the debugger, it puts a question mark in the red circle and continues on to the end of the program. I have changed the program so I can get it to stop at a break poiint, but the source code and the yellow arrow marker are misaligned by 5 lines with the yellow arrow 5 lines too far into the source file. I have another similar project that I built a couple of years ago and it works fine. We have not upgraded the Intel compiler or MS Studio since then, so I am baffeled as to why this is happening.

Glen
0 Kudos
3 Replies
Steven_L_Intel1
Employee
917 Views
This is usually caused by the file listed under Properties..Debug not being the same one that is the output of the linker.
0 Kudos
gmortensen
Beginner
917 Views
Steve,

The debug was the same as the output of the linker. So that was not the problem.

We decided that perhaps the extra # lines inserted by fpp might be the culprit, so we added the -P option to the fpp command and rebuild the *.for files. This removed these extra # lines. I guesss they are just markers and am not sure how they are used. But, now the debugger works fine. We had used cpp in the earlier code version, so it did not have these extra # lines in the *.for files. That explains why the earlier code version worked in the debugger and the current one did not.

Thanks again for your help.

Glen
0 Kudos
Steven_L_Intel1
Employee
917 Views
Ah, now I remember. The 8.0 compiler did have a problem with fpp-processed files and the debugger. The issue was that the "original source line markers" (those # lines) were incorrect for some fpp-generated sources. This is fixed in current versions.
0 Kudos
Reply