Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.54 KB

od-disable-debug.md

File metadata and controls

40 lines (27 loc) · 1.54 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /Od (Disable (Debug))
/Od (Disable (Debug))
11/04/2016
/od
no optimizations
fast compiling
/Od compiler option [C++]
disable optimizations
Od compiler option [C++]
-Od compiler option [C++]
disable (debug) compiler option [C++]
b1ac31b7-e086-4eeb-be5e-488f7513f5f5

/Od (Disable (Debug))

Turns off all optimizations in the program and speeds compilation.

Syntax

/Od

Remarks

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).

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > C/C++ > Optimization property page.

  3. Modify the Optimization property.

To set this compiler option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.Optimization%2A.

See also

/O Options (Optimize Code)
MSVC Compiler Options
MSVC Compiler Command-Line Syntax
/Z7, /Zi, /ZI (Debug Information Format)