Recently I upgraded to the most recent version (2015) of the IVF. After compiling up a Debug build, I noticed the VStudio (2010) debugger moving to unexpected code lines when F10 or F11 was pressed. Upon investigating, I determined that the Optimization setting for our Debug build was set to "Maximize Speed". If I change this setting to Disabled (/Od), the odd stepping behavior does not occur.
Now, the project I am using is under config control, and no settings were changed from the previous IVF compiler (2013.5.198). The Max Speed setting was the Debug default for that project and I had no issues stepping through the code using the VStudio debugger.
My question is: The default for our Debug build (from inherit from project defaults) seems to be Maximum Speed, which puzzles me because it is much more difficult to actually debug, because of the odd stepping behavior when pressing F10 or F11. Is Maximum Speed the default for Debug builds? And if so, Why? (I would have thought Disabled for Debug builds, and Maximize Speed for Release builds).
Also, if a Release is built with Maximize Speed, and a developer wants to actually debug it using VStudio, how can that be accomplished?
Note: I am aware that projects built with /Od and with Max Speed may result in different calculation results, depending on how the code was written.