My Fortran application is a DLL called from a C++ main GUI application. I have compiled it successfully using PGI Visual Fortran in Visual Studio 2008, and it runs, but the debugger doesn’t work as I expected.
For example, if I set a breakpoint within a Fortran routine that I know is regularly called from the GUI, the breakpoint is never triggered; likewise, if I set a breakpoint in the C++ code just before a call to a Fortran function and try to step through, the debugger ignores the Fortran code and steps on to the next C++ line.
I am of course compiling the Fortran code in debug mode. What am I doing wrong?