This section provides some guidelines for locating the cause of exceptions and run-time errors. Visual Fortran run-time error messages do not usually indicate the exact source location causing the error.
To locate the cause of errors use the various compiler options to isolate programming errors at compile-time and run-time or use the debugger to locate the cause of exceptions:
For example, if you specified /fpe:3, exceptions related to exceptional IEEE values are not reported and your application may generate exceptional IEEE values, which later in your application may generate an exception or unexpected values. By recompiling the application at /fpe:0, any exceptional IEEE values generated will cause the program to terminate and report an error message earlier.
The FOR_GET_FPE and FOR_SET_FPE routines are also available to examine and set the run-time handling of certain arithmetic exceptions.