This is the documentation for the latest (main) 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_EXCEPTION_STACK_TRACE

Attempt to print stack traces upon exceptions

Type: bool

Help

If the architecture fatal handling code supports it, attempt to
print a stack trace of function memory addresses when an
exception is reported.

Direct dependencies

PRINTK && DEBUG_INFO && !OMIT_FRAME_POINTER

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At subsys/debug/Kconfig:311

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:17

Menu path: (Top) → Sub Systems and OS Services → Debugging Options → Enable system debugging information

config EXCEPTION_STACK_TRACE
    bool "Attempt to print stack traces upon exceptions"
    default y
    depends on PRINTK && DEBUG_INFO && !OMIT_FRAME_POINTER
    help
      If the architecture fatal handling code supports it, attempt to
      print a stack trace of function memory addresses when an
      exception is reported.

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