Displaying the value of a Fortran variable with gdb |
|
At any time while you are stepping through the execution of your program, you can find out what values are currently stored in your variables by using the ``print'' command.
For example, if you have a variable named ``density'', you can type this command to examine its value:
print density
Warning: You must type your variable names all in lowercase letters in gdb, regardless of how they were capitalized in your source program.