pio_debug_cmd
Execute GDB commands in an active debug session and get parsed output to inspect variables, set breakpoints, control execution, or halt the target.
Instructions
Send one gdb command to an open debug session and get its output back, parsed from GDB/MI: bt, p var, p/x reg, info locals, info registers, x/16xw addr, break src/main.cpp:42, watch counter, next, step, finish, continue, monitor reset halt, or raw MI such as -stack-list-frames. Execution commands (continue/next/step/finish) block until the target stops again or timeout_s passes; on timeout the target keeps running and interrupt halts it. Returns result_class, console lines, error, and stopped {reason, frame{function,file,line}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout_s | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||