How should you disable all types of optimizations while debugging in VS2010?
Add -O0 to compiler parameters. This should turn off all optimizations.