Intel® Fortran Compiler XE 13.1 User and Reference Guides
On Windows* operating systems: Use /Zi, /Zd, or /Z7 at compile time and /DEBUG at link time to generate executables with debug information in the .pdb file.
On Linux operating systems: Use -g at compile time.
On OS X* operating systems: You can link the DWARF debug information from the object files for an executable using dsymutil, a utility included with Xcode*. By linking the debug information in an executable, you eliminate the need to retain object files specifically for debugging purposes.
The utility runs automatically in the following cases:
When you use the Intel compiler to compile directly from source to executable using the command line. For example:
ifort -g myprogram.f90
When you compile using Xcode*.
In other cases, you must explicitly run dsymutil, such as when you compile using a make file that builds .o files and subsequently links the program.
If you use IDB to debug an application built with OpenMP*, you may observe problems after running dsymutil. If so, do not use dsymutil. Either remove it from your command line or disable it in Xcode.