Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29359 Discussions

Runtime debug output in release version?

chstoyer
Beginner
734 Views
I have upgraded from CVF to IVF newest version. Under IVF, when the release version crashes, there is virtually no traceback information. This information can sometimes be useful, especially if a customer has a crash or if the software runs fine in debug mode but crashes in release.

I am trying to get a traceback similar to that from CVF which gives subroutine call trace and line numbers. I have found

Line Numbers Only (/debug:minimal) in Debug information format under Fortran/Debugging (default is NONE)and

Generate Traceback Informationcan be set to YES(/traceback)under Fortran/Run-Time, but that requires Omit Frame Pointers be set to NO in Fortran/optimizsation.

Will setting these switches (Line Numbers Only, Generate Traceback Information Yes and Omit Frame Pointers No) give me informative traceback information for a crash in the release version without unduly slowing things down?

Or are there other switches to consider?

Thanks,

Charles
0 Kudos
1 Reply
Steven_L_Intel1
Employee
734 Views
You don't need the /debug setting at all - just /traceback and disable "omit frame pointers". This won't slow down your code to any noticeable degree.
0 Kudos
Reply