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

Displaying the value of a Fortran variable with gdb

Tech Computer Center logo

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.


Next: Terminating your Fortran program under gdb
See also: Debugging Fortran programs with gdb
Previous: Finding out where you are in 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/gdbprint.html