开发者

Disable all types of optimizations in VS2010

开发者 https://www.devze.com 2023-02-05 03:59 出处:网络
开发者_StackOverflow社区How should you disable all types of optimizations while debugging in VS2010?To insure optimizations are off, right click on your project -> Properties -> Configuration Properti

开发者_StackOverflow社区How should you disable all types of optimizations while debugging in VS2010?


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


Select the menu item Project->Properties.

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


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


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


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

精彩评论

暂无评论...
验证码 换一张
取 消