get_output
Retrieve the current output and status of the running debugger command. Poll to monitor progress and capture new output, such as breakpoint hit messages.
Instructions
Get the output status and content of the current command.
Used to poll a command's progress after execute() returns pending. Does not send any command to CDB; only reads the existing output buffer.
Returns JSON: {"status": "pending", "output": "...", "command": "g"} -- command still running; output is what has been produced so far {"status": "idle", "output": "", "command": null} -- no command is executing
Typical usage:
execute("g") -> returns pending
get_output() -> check for new output (e.g. breakpoint hit info)
If output shows breakpoint reached, call interrupt() to stop
If still running, keep polling with get_output()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |