Disable all types of optimizations in VS2010

前端 未结 5 1230
甜味超标
甜味超标 2021-01-04 18:13

How should you disable all types of optimizations while debugging in VS2010?

相关标签:
5条回答
  • 2021-01-04 18:25

    There should be none or at least less optimization going on in a debug build. Check your buildsettings for more options.

    0 讨论(0)
  • 2021-01-04 18:43

    Go to your project, right click on it → PropertiesBuild → (go down and click on) Advanced → a window will opened and check whether Debug info in Output is Full.

    0 讨论(0)
  • 2021-01-04 18:45

    Select the menu item Project->Properties.

    Under Configuration Properties->C/C++->Optimization, in the Optimization field, select disabled.

    0 讨论(0)
  • 2021-01-04 18:49

    Add -O0 to compiler parameters. This should turn off all optimizations.

    0 讨论(0)
  • 2021-01-04 18:52

    To insure optimizations are off, right click on your project -> Properties -> Configuration Properties -> C/C++ -> Optimization -> Optimization = Disabled. This is the /Od compiler switch.

    0 讨论(0)
提交回复
热议问题