Next / Previous / Index / TCC Help System / Publications / Site map / NM Tech homepage

Stepping through your Fortran program with gdb

Tech Computer Center logo

One thing that is good to know is the exact sequence of execution of your program, especially through loops and conditional branches. If the program is not too large, you can follow it easily by executing one line at a time.

To execute the next statement, type:

        step

Each time you type a ``step'' command, gdb will then list the line that it is about to execute, with the line number on the left, so you can see what's about to happen before it happens.


Next: Finding out where you are in gdb
See also: Debugging Fortran programs with gdb
Previous: Starting your Fortran program with gdb
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 1995/12/19 18:58:09 UT
URL: http://www.nmt.edu/tcc/help/lang/fortran/gdbstep.html