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

debugging jumps around randomly

Brian_Murphy
New Contributor II
887 Views

When stepping through code a line at a time with F8 in the visual studio debugger, execution seems to jump around randomly.  What causes this and how do I fix it?

0 Kudos
2 Replies
TimP
Honored Contributor III
887 Views

If you compile with optimization such as -O1 or -O2, this is expected. The default for /debug (including VS debug builds) is -Od.

0 Kudos
Brian_Murphy
New Contributor II
887 Views

Thanks for the tip.  The .LIB was being built with /O3.  I changed it to /Od and now debugging works well.  So now I'm back to looking for a bug.  I need to start a new thread about something weird about that.

0 Kudos
Reply