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 <Zephyr>/subsys/debug/Kconfig:321

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/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.)