Diagnostic Report, -d{n}

The command option -d{n} generates the additional information required for a list of the current values of variables to be output when certain runtime errors occur. Diagnostic reports are generated by the following:

The Level of Output

The level of output is progressively controlled by n, as follows:

n=0 (or n omitted)

Displays only the procedure name and the number of the line at which the failure occurred.

n=1

Reports scalar variables local to program active units.

n=2

Reports local and COMMON scalars.

n>2

Reports the first n elements of local and COMMON arrays and all scalars.

The appropriate error message will be output on stderr, and (if selected) a postmortem report will be produced.

Selecting a Postmortem Report

Each scalar or array will be displayed on a separate line in a form appropriate to the type of the variable. Thus, for example, variables of type integer will be output as integer values, and variables of type complex will be output as complex values.

The postmortem report will not include those program units which are currently active, but which have not been compiled with the -d{n} option. If no active program unit has been compiled with the -d{n} option then no postmortem report will be produced.

Note
Using the -d{n} option for postmortem reports disables optimization.