run_and_wait
Resumes the debug target and waits for a stop event, returning structured reason, frame, breakpoint, signal, or timeout instead of polling.
Instructions
Resumes the target and waits, returning a structured stop event (reason, symbolized frame, breakpoint id, signal) or a timeout. Use this instead of continue_execution + polling to close the debug loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Optional debug-session name. Omit for the default target. | |
| timeout_sec | No | Max seconds to wait for a stop (default 10). |