Use the ifort command with certain options to create an executable program for debugging. To invoke the debugger, enter the debugger shell command and the name of the executable program.
The following commands create (compile and link) the executable program and invoke the interface to the debugger:
ifort -g -o squares squares.f90
Linux Application Debugger for xx-bit applications, Version x.x, Build xxxx
object file name: squares
reading symbolic information ... done
In this example, the ifort command:
Compiles and links the program squares.f90.
Requests symbol table information needed for symbolic debugging and no optimization (-g).
Names the executable file squares instead of a.out (-o squares).
The idb shell command runs the debugger, specifying the executable program squares.
At the debugger prompt (idb), you can enter a debugger command.
See also the online Intel ® Debugger (IDB) Manual.
See the -debug keyword option to learn more about settings that enhance debugging.