Preparing a Program for Debugging. Simple Debugging

Compile and link your program using the -g option.

 

% icc -g tmp.c

 

For more information see also:

Preparing the Compiler and Linker Environment.