Fortran User's Guide

Debugging Options

The following options aid program debugging, including post-mortem, runtime, and static source code analysis. The most useful are listed first.

Table 3-4 Debugging Options 

Action 

Option 

Details 

Compile for use with the debugger. 

-g

"-g"

Global source program checking for consistency. 

-Xlist

"-Xlist[x]"

Check for subscripts out of range. 

-C

"-C"

Undeclared variables--show a warning message. 

-u

"-u"

Version ID--show ID along with name of each compiler pass. 

-V

"-V"

Enable VMS Fortran `D' debugging statements with -vax=debug.

-vax=v

"-vax=v"

Allow debugging by dbx without .o files.

-xs

"-xs"