pio_decode_backtrace
Convert crash dumps into source locations. Supply ESP32 or Cortex-M backtrace text to resolve addresses with addr2line, returning function, file, line, crash cause, and reset reason.
Instructions
Turn a crash dump into source locations. Give text containing an ESP32/ESP-IDF 'Guru Meditation' register dump and 'Backtrace: 0x...:0x...' line, or a Cortex-M HardFault pc/lr dump, or give session_id of an open monitor session to scan its buffer. Resolves every program-counter address with the toolchain's addr2line against the env's firmware.elf and returns function, file, line (with inlined frames) per address, plus the crash cause and reset reason. The ELF must be from the same build that was flashed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| text | No | ||
| session_id | No | ||
| project_dir | No | ||
| include_all_hex | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||