Issues with Intel Fortran in Visual Studio

I strongly recommend you try out the debugger. It saves me a huge amount of time and is honestly the only reason why I’m stuck with Visual Studio.

It’s easy to use. Just setup your command arguments in the project configuration under Debugger, if needed. Put breakpoints in your code wherever you want to stop. You can then inspect your local variables and step through your code.

One weird thing that happens with Fortran is that often when you have a matrix operation on a line (I think it usually happens with matmul()) and you want to Step Over that line, it takes an incredible amount of time for no apparent reason. Sometimes it’s minutes.
In this case, just go to the following line, and do Run To Cursor (Ctrl+F10), which works instantly.

…btw, I had to restart Studio about 20 times during 4 hours today…

2 Likes