Fortran Wiki
Debugging tools (Rev #2, changes)

Showing changes from revision #1 to #2: Added | Removed | Changed

Useful compiling options

Unfortunately, compiling options depend on the used compiler

g95g95

-g -fbounds-check -Wall

additional environment variables :
export G95_FPU_INVALID=1
export G95_FPU_ZERODIV=1

Additional useful environment variables :

gfortran

On LINU/UNIX with bourne shell :
export G95_FPU_INVALID=1
export G95_FPU_ZERODIV=1
export G95_FPU_OVERFLOW=1
export G95_MEM_INIT=NAN

gfortran

-g -fbounds-check -Wall -fbacktrace -finit-real=nan

ifortifort

-g -check -fpe0 -warn -traceback

Debuggers