debug_start_session
Start a GDB session on an ELF firmware image to enable debug_continue and debug_halt on OpenOCD-backed embedded targets.
Instructions
Opens a GDB session on an ELF for debug_continue and debug_halt. OpenOCD backend only; others answer not_supported. Needs GDB (debug.gdb_executable or PATH), the debugger entry's scripts and allow_raw_debugger_commands off. Returns the core halted: session (status, stop_reason), log_path. A second start: session_already_active. debug_get_session_status inspects it; debug_stop_session ends it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | attach (default): halts the core, no reset. reset_halt: resets, halts; needs allow_reset. load: resets, flashes the ELF, resets, halts; needs allow_reset and allow_flash, not allow_mass_erase. | attach |
| timeout_s | No | Seconds. Default and ceiling: the debugger entry's timeout_s (60 unless set); 0.1 at least. Bounds the debug server's start and each GDB step (10 s at most). Expiry: timeout. | |
| image_path | No | Path to a .elf file, relative to the workspace or absolute, inside the workspace and (by default) artifacts.allowed_roots. Give this or artifact_id, not both. | |
| artifact_id | No | Id of an ELF stored with artifact_upload. Give this or image_path, not both. |