If your program encounters a signal (exception) at run time, you may want to recompile and relink with certain command-line options before debugging the cause. The following will make it easier to debug the program:
Use the -fpen (Linux OS and Mac OS X) or /fpe:n (Windows OS) option to control the handling of floating point exceptions.
As with other debugging tasks, use the -g (Linux OS and Mac OS X) or /debug:full (Windows OS) compiler option to generate sufficient symbol table information and debug unoptimized code.
The following applies to Windows* operating systems.
You can request that the program always stop when a certain type of exception occurs. Certain exceptions are caught by default by the Intel Visual Fortran run-time library, so your program stops in the run-time library code. In most cases, you want the program to stop in your program's source code instead .
To change how an exception is handled in the Microsoft debugger:
For machine exceptions, you can use the just-in-time debugging feature to debug your programs as they run outside of the visual development environment. To do this, set the following items: