pio_debug_start
Start a live GDB debugging session on a board through its debug probe. It launches the configured debug server, builds and loads debug firmware, then halts execution at main for immediate inspection.
Instructions
Open a live gdb session on the board through its debug probe (pio debug --interface=gdb, GDB/MI over pipes): starts the debug server (OpenOCD, J-Link, ST-Link, esp-prog, ...) from debug_tool in platformio.ini, builds a debug firmware, loads it (load=true) and halts at debug_init_break (default: main). Returns session_id, the .pioinit script PlatformIO generated, and the initial stop frame. The session holds the probe: stop it (pio_debug_stop) before pio_upload or pio_flash_and_verify. Blocked under build_only/read_only policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| load | No | ||
| timeout_s | No | ||
| project_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||