| title | -Od (Disable (Debug)) | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | b1ac31b7-e086-4eeb-be5e-488f7513f5f5 | |||||||||||||
| caps.latest.revision | 13 | |||||||||||||
| author | corob-msft | |||||||||||||
| ms.author | corob | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
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 Working with Project Properties.
-
Click the C/C++ folder.
-
Click the Optimization property page.
-
Modify the Optimization property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.Optimization%2A.
/O Options (Optimize Code)
Compiler Options
Setting Compiler Options
/Z7, /Zi, /ZI (Debug Information Format)