Preparing Your Program for Debugging

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

idb squares

Linux Application Debugger for xx-bit applications, Version x.x, Build xxxx

object file name: squares

reading symbolic information ... done

(idb)

In this example, the ifort command:

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.