debug_output
Reads new print(), stdout/stderr, and structured engine/runtime errors with file/function/line details from a game started with debug_run; each call drains output.
Instructions
Read what a game started with debug_run produced: print() output and stdout/stderr lines, plus structured errors - push_error, push_warning, engine errors and runtime script errors - each with file, function, ZERO-BASED line and call stack. Returns: lines, errors, and their counts. THIS IS THE ONLY WAY to see what the game actually did; the language server reports whether code compiles, not what it printed. Output and errors are drained on each call, so successive calls return only what is new.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Seconds to wait for output (default 1) | |
| clear | No | Drain the buffer (default true) |