Starting your Fortran program with gdb |
|
Once you have compiled your Fortran program with the ``-g'' option (see `Compiling your Fortran program for debugging'), you can control and monitor its execution in detail by using the gdb debugger program.
To start execution of a program named foo under gdb:
gdb foo
You will get a command prompt that looks like this: (gdb)
break main
run
This will start execution of your program, but execution will pause
just before the first executable statement.