description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /Od (Disable (Debug)) |
/Od (Disable (Debug)) |
11/04/2016 |
|
|
b1ac31b7-e086-4eeb-be5e-488f7513f5f5 |
Turns off all optimizations in the program and speeds compilation.
/Od
This option is the default. Because /Od suppresses code movement, it simplifies the debugging process. For more information about compiler options for debugging, see /Z7, /Zi, /ZI (Debug Information Format).
-
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.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.Optimization%2A.
/O Options (Optimize Code)
MSVC Compiler Options
MSVC Compiler Command-Line Syntax
/Z7, /Zi, /ZI (Debug Information Format)