Something goes wrong with the way the compiler sets up the debug info in particular routines.
I am using the most recent FORTRAN, so the problem might be in VS.
the breakpoint causes the green arrow to point to a routine that has nothing to do with where it occurs.
So I cannot look at the variables in the routine itself, I have to go back and insert print statements, or set breakpoints where it occurs,
which BTW - - does get properly reported in the output window.
I cannot use the call stack either, since the arrow is completely in the wrong place.
Not all routines behave this way, so it has to do with HOW COMPLEX the routine is, i.e how many internal routines, or how long the code is.
Anyway, I generated a ZIP file for the entire project. The should include all the source code and the buildlog.htm