Next: Debug Signals, Previous: Connecting to the Debug Endpoint, Up: The Debug Server [Contents]
Authenticate (s token) ⇒ (b ok)Prove knowledge of debug-auth-token. When the Core has no token
configured, every call succeeds and other methods stay open. On failure
the connection is closed.
GetStatus () ⇒ (a{sv})Snapshot of process state. Dictionary keys include
debug-api-version (u; currently 3),
auth-required (b), package,
version, rules-file, service-match, bind-host,
bind-port (q), client-address, peers /
pending-peers / inputs / outputs (u),
no-discovery (b), paused (b),
stop-reason / stop-id (s), and counts of
breakpoints / watchpoints (u).
ListPeers () ⇒ (a(ssuu))Current peer table. Each tuple is
(name, address, port, state), where
state matches STClientState
(IDLE=0, PENDING=1, READY=2, FAILED=3).
ListInputs () ⇒ (a{s(siddddt)})ListOutputs () ⇒ (a{s(siddddt)})Full snapshot of the Core’s local I/O tables (all_inputs /
all_outputs). Each dict entry uses the same shape as
InputChanged / OutputChanged: key is the identifier; value is
(description, unit, min, max, step,
value, flags). Debuggers should call these on attach and for
info io so stable values (never recently changed) are still visible.
SetInput (s id, d value, t flags) ⇒ (i ok)Writes into the Core’s local input cache for id, as if the peer had
reported a new value. That updates the cached STInput (property
notify::val) and drives the usual rule-evaluation path, unless a
breakpoint or watchpoint pauses first. Returns 1 on success, 0
on failure.
SetOutput (s id, d value, t flags) ⇒ (i ok)Calls st_client_set_output on the owning peer, bypassing
MANUAL_OVERRIDE gating so a debugger can force actuators during a
session. Returns 1 on success, 0 on failure.
AddBreakpoint (s id) ⇒ (u handle)RemoveBreakpoint (u handle) ⇒ (b ok)ListBreakpoints () ⇒ (a(us))Breakpoints are keyed by I/O or variable identifier. A hit occurs when
rules are about to run because of that id (value change or
apply). The Core then pauses before engine_apply. List entries are
(handle, id).
AddWatchpoint (s id) ⇒ (u handle)RemoveWatchpoint (u handle) ⇒ (b ok)ListWatchpoints () ⇒ (a(us))Watchpoints fire only when the value of id changes (input, output, or variable). Same pause semantics as breakpoints.
Continue ()Clears the paused state so rule evaluation may proceed again.
GetPaused () ⇒ (b paused)TRUE while the Core is cooperatively stopped after a breakpoint or
watchpoint hit.
Next: Debug Signals, Previous: Connecting to the Debug Endpoint, Up: The Debug Server [Contents]