This is the documentation for the latest (master) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.
CONFIG_DEBUG_OPTIMIZATIONS

Optimize debugging experience

Type: bool

Help

Compiler optimizations will be set to -Og independently of other options.

Direct dependencies

<choice: Optimization level>

(Includes any dependencies from ifs and menus.)

Kconfig definition

At Kconfig.zephyr:224

Included via Kconfig:8

Menu path: (Top) → Build and Link Features → Compiler Options → Optimization level

config DEBUG_OPTIMIZATIONS
    bool "Optimize debugging experience"
    depends on <choice: Optimization level>
    help
      Compiler optimizations will be set to -Og independently of other
      options.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)