# Zo

Enables or disables generation of enhanced debugging information for optimized code.

## Syntax

Linux: | None

macOS: | None

Windows: | /Zo /Zo-

## Arguments

None

## Default

OFF | The compiler does not generate enhanced debugging information for optimized code.

## Description

This option enables or disables the generation of additional debugging information for local variables and inlined routines when code optimizations are enabled. It should be used with option /Zi or /Z7 to allow improved debugging of optimized code.

Option /Zo enables generation of this enhanced debugging information. Option /Zo- disables this functionality.

For more information on code optimization, see option /O.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Output, Debug, and Precompiled Header Options

## See Also

Zi, Z7, ZI compiler option
debug (Windows*) compiler option
O compiler option