Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

Debug question

dondilworth
New Contributor II
602 Views
When my program encounters an array index that is out of bounds, I want to see where in the code it happens. The debugger stops execution, but the call stack has only Windows routines, not my own subroutines. How can I get it to point to the error in my Fortran code?
0 Kudos
1 Solution
Anonymous66
Valued Contributor I
602 Views
To see where the error is occurring in your code, the option /traceback needs to be set. If you are using Visual Studio, it is under properties > Run-time > Generate Traceback Information. It is on by default in debug mode.

Annalee
Intel Developer Support

View solution in original post

0 Kudos
1 Reply
Anonymous66
Valued Contributor I
603 Views
To see where the error is occurring in your code, the option /traceback needs to be set. If you are using Visual Studio, it is under properties > Run-time > Generate Traceback Information. It is on by default in debug mode.

Annalee
Intel Developer Support
0 Kudos
Reply