Unfortunately, compiling options depend on the used compiler
-g -fbounds-check -Wall -ftrace=full
Additional useful environment variables:
On Linux/UNIX with bourne shell:
export G95_FPU_INVALID=1
export G95_FPU_ZERODIV=1
export G95_FPU_OVERFLOW=1
export G95_MEM_INIT=NAN
-g -Wall -Wextra -Warray-temporaries -Wconversion -fimplicit-none -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=invalid,zero,overflow,underflow -finit-real=nan
-g -check all -fpe0 -warn -traceback -debug extended
-g -C=all -nan
-g -xcheck=%all -fnonstd
-g --ap --chk