Sessions
The debugger opens on the sessions of the revision on screen, each with its id, alias, description, status and creation time. Opening a session lists its runs. On a draft you can write to, New Session creates another, and a session offers Edit Session for its alias, description and tracing, Close Session, Reopen Session once it is closed, and Delete Session. Closing and deleting finish in the background. The tab you clicked in rereads the session’s status for up to a minute, until it settles; another tab, or another person watching the same session, sees the new status only after reloading the page. Sessions covers what each status means.Executions
A session’s runs are listed newest first, each with its id, when it started, how long it took, its definition, its caller, its description and its status. On a draft you can write to, New Execution starts another in an open session, from a definition of the revision on screen. Each run is labelled from its own record, not from the definitions as they stand today. The Definition column shows the alias the definition had when the run resolved it, and a run whose definition came from another revision or another workflow is marked with that source, as text to read rather than a link the debugger follows. The Caller is whoever started the run, and for a scheduled run, whoever created the schedule. List Executions returns the same records. A session’s view has a toggle on its bar, at the right end of the row, reading Executions, Events and Listeners, and remembers the one you chose for the workflow. Events and listeners covers the other two.

Every run in a session, with what it ran and how it ended.
Events and listeners
The debugger’s Events view lists the session’s stream, newest first, with a row of controls above the grid: Types (any glob, such asthread.*), Aliases, Executions and
Listener, which keeps only what one declared listener did. Together they are an event
filter, and an empty control adds nothing. Each row shows the event’s ID,
the object’s alias, its type, when it was created, its source, its caller and the run it belongs to. Selecting a row
opens it under its own row: its properties on the left, with Open Execution when it has a run, and the record as
JSON on the right. The Source is how the record arrived, with the listener’s alias and batch ID when a listener
wrote it, and the Caller is who it ran as, or None when the source names no one. Selecting the row again, or its
close control, folds it back. Load More Results reads the next page. While the view is open the list follows the
stream and adds new events as they are written, over a connection when there is one and by polling when there is not.
The debugger’s Listeners view shows what acts on the session. Declared
listeners are listed with a switch that turns each on or off for this
session, their last outcome, counts by outcome, what is in flight and what is pending. Selecting one opens its
properties under its row, with the stored body as JSON beside them, and lists its last twenty outcomes below;
Show Outcomes brings them back once closed. The detail’s Retry shows the listener’s policy, such as
2 attempts · 30 s, or None, and a retry’s outcome carries a retry <n> mark after its status, in the outcomes
grid, in the detail and in the listener’s last outcome.
A third grid lists the session’s connection listeners, marking the one this page holds, and each grid has its own
Refresh. The view rereads every ten seconds. Show Effects on a selected listener opens the Events view filtered
to what that listener did. On a revision that is not writable, a notice says its listeners do not act and the
switches are disabled.
Timeline and event data
Opening a run shows it in three panes. The first holds the run’s record and the graph it ran, drawn from the run’s own snapshot: the copy of the definition taken when the run was created, so later edits never change what you see. Beside the graph are the reference as the run asked for it, the definition it resolved to, and where the snapshot came from: taken at creation; marked backfilled, copied after the run, for a few older runs; or none, for older runs whose graph is the definition as it stands now. The second pane lists the run’s events in order: the flow entering and exiting, each component entering and exiting with the route it took and how long it ran, and any output, warning or error a component reported. Selecting an event highlights its component on the graph and opens the event in the third pane, with its details and, under Event Data, the data it carries. Execution Events defines each event. Some components attach data to their events, such as a model call’s request and response, with the secrets of the credentials it used masked. That data is kept only when the run’s tracing setslog_data, which is off by default. A
run takes its session’s tracing, set in Tracing when the session is created or edited, and a run started through
the API can set its own. List Execution Events and
Download Event Data read the events and their data
through the API.


The graph is drawn from the definition the run actually used, not today's.
Following a run
While a run has not ended, its event list rereads the log about once a second and adds the events written since the last one it holds. The Auto refresh until terminal status switch turns that off, and Load Older Events and Load Newer Events page by hand. The log itself is read, not pushed, so what you see is the log as of its last read; the session’sexecution.ended event tells the view the run is over, and the log is read until a minute after
the end and once more, because a row can be written late.
On a draft you can write to, Stop Execution stops a running run, leaving its flow unfinished.
The SDK reads the same record. run.events() returns a run’s whole event log, run.wait() can hand each new event to
a callback, run.stop() stops the run, and run.url opens it here, in the debugger.
Workflow covers the module.
