Stepping through your Fortran program with gdb |
|
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.