Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable all types of optimizations in VS2010

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

like image 820
user15353 Avatar asked Jan 16 '11 18:01

user15353


People also ask

How do I disable optimization in Visual Studio?

Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio. Select the Configuration Properties > C/C++ > Optimization property page. Modify the Optimization property.

How do I stop GCC optimization?

The gcc option -O enables different levels of optimization. Use -O0 to disable them and use -S to output assembly.


2 Answers

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

like image 178
ThomasMcLeod Avatar answered Oct 16 '22 14:10

ThomasMcLeod


Select the menu item Project->Properties.

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

like image 31
Benjamin Lindley Avatar answered Oct 16 '22 16:10

Benjamin Lindley