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
Nuevo Colaborador II
2.731 Vistas

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 Respuestas
TimP
Colaborador Distinguido III
2.731 Vistas

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

Brian_Murphy
Nuevo Colaborador II
2.731 Vistas

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.

Responder