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 on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Debug question

dondilworth
New Contributor II
578 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
578 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
579 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