Intel® C++ Compiler XE 13.1 User and Reference Guides

Linking Debug Information

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:

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.

Note

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.


Submit feedback on this help topic