Documentation Index
Fetch the complete documentation index at: https://docs.lagerdata.com/llms.txt
Use this file to discover all available pages before exploring further.
Features
- Pause a running script with
lager.pause(). Droplager.pause("why")anywhere in alager pythonscript and it stops at that line mid-run, so you can check the bench from another terminal before it continues — useful for a long test that reaches a known trouble spot. A paused script doesn’t lock the box, so your otherlagercommands (read a supply, toggle a GPIO, check a net) keep working while it waits. - Resume however suits you. Press Enter in the script’s terminal, run
lager python --continue <id> --box <box>from anywhere, or just walk away — it auto-resumes after 5 minutes by default so an unattended run never hangs. The pause prints theidand the exact resume commands. - Inspect the paused script with a live Python console. Add
pause(interactive=True)and connect withlager python --console <id> --box <box>to get a Python prompt running inside the paused script — read any of its variables, evaluate expressions, or call its functions. This is also how you read a device the script is holding open (e.g. a LabJack), since the console runs in the same process.
Improvements
- The built-in
breakpoint()now works inlager pythonscripts. It previously errored out; callingbreakpoint()now triggers the same interactive pause aslager.pause(). - Tune or disable the auto-resume. Set a longer (or shorter) wait with
pause("...", timeout=1800)orlager python ... --env LAGER_BREAKPOINT_TIMEOUT=1800; usetimeout=0to wait indefinitely; setLAGER_BREAKPOINTS=offto turn every breakpoint into a no-op for a clean run.

