The debugger shows the program beside its recorded execution. Select a transition to see the source, the graph and the inspector at the same point. This tour uses the webhook example: a partner request times out, Retry schedules another attempt, and that attempt succeeds.
Open the debugger
Section titled “Open the debugger”Install a binary built with hosted-ui, then open a scenario:
rastok simulate hello.rkg --uiUse the hello.rkg created in Getting Started, or supply
the path of your program. The webhook example
gives the complete command and deployment profile for the graph in the tour.
For an existing recording, use:
rastok replay echo.rkr --uiThe CLI prints a loopback URL. Open that exact URL in your browser; it contains
the capability needed to access this debugger. Keep it private. The URL is
clickable in terminals that support hyperlinks. Leave the process running
while you inspect it. --ui-port selects a port when you need one; otherwise
the operating system chooses it.
In Terminal on macOS, hold Command and double-click the URL to open it, as listed in the Terminal keyboard shortcuts. Other terminals may use a different shortcut. Copying the complete URL into your browser also works; do not omit its access token or share it.
Simulation starts paused and can execute its Lab scenario. Diagnostic replay reads an existing recording without repeating external effects. These are different modes of the same interface, not two names for the Play button.
Find your way around
Section titled “Find your way around”The numbered view is a recorded backoff transition of
webhook.timeout_then_success. The numbers were added to the running page
before capture; the state and values come from that scenario. The graph is
shown at Readable size, centered on the Node of that transition; Fit graph
shows the complete drawing instead.

- App bar and mode. The mode and execution status distinguish a live simulation, recorded history and diagnostic replay.
- Transport. Back, Next transition, Next action, Run to expect, Finish, Play, Speed and Reset control which transition you see. The table below explains their differences.
- Timeline. Select an already recorded transition or a simulation session. Return live goes back to the current execution head. Pending lists recorded obligations such as a retry deadline.
- Source. File tabs, line numbers, the current marker and Search connect execution to the authored program. A selected graph element highlights its definition. Fold regions to keep the relevant part visible.
- Inspector. Envelope shows data and metadata; Mailbox shows queued deliveries; Instances shows state and lifetime information; History shows recorded changes; Assertion explains an expectation; Compare aligns two instances or sessions for inspection.
- Graph and legend. Nodes and connections show the selected transition. Select a node or a port to inspect it. The legend explains the visual notation; Fit and zoom change the view, not execution.
- Logical clock and controller. The clock is the execution’s logical time, not elapsed browser time. The controller role identifies the browser allowed to advance execution; another connected browser can inspect it.
Advance deliberately
Section titled “Advance deliberately”| Control | What it does |
|---|---|
| Back | Select the preceding recorded transition. |
| Next transition | Advance one recorded transition, executing when at the live head. |
| Next action | In simulation, advance one authored scenario action to its effect. |
| Run to expect | In simulation, continue to the next expectation. |
| Finish | Continue to completion. |
| Play / Pause | Advance through transitions at the selected playback speed, or stop. |
| Speed | Choose the playback rate; it does not change logical deadlines. |
| Reset | Start a clean simulation session for the selected scenario. |
Selecting history does not undo a real external effect. Play is a playback
control; rastok replay is the CLI command that opens a recording without
Driver I/O. Controls that do not apply in the current mode are unavailable.
Follow an identifier
Section titled “Follow an identifier”Hover an identifier in the source, or focus it with the keyboard, to read its recorded summary. When available, its link opens the corresponding inspector tab. Classified values and secret bindings stay redacted.

Selecting greet in the graph highlights its source definition. Source and
graph are two views of the same selected transition.

Understand an assertion
Section titled “Understand an assertion”In the starter, change only app.in = "world" to app.in = "monde", leaving
the expectation unchanged. Open the changed program and choose Finish. The
header shows the Lab’s verdict. A pass includes the number of expectations;
on failure, click the first failed expectation to open its recorded
transition in Assertion. It may not be the last action. If only the
reference trace differs, the header reports that instead: no expectation
failed. Return live takes you back to the completed scenario.
The Assertion tab shows the authored expectation, its observation window and the
observed value beside the expected value. Here the Operator produced
"Hello, monde", not "Hello, world".

An expectation inspects observations since the preceding injection or time advance. Successive expectations can inspect the same window. The debugger does not infer a missing observation or invent a comparison when a predicate cannot be explained field by field.
Keyboard shortcuts
Section titled “Keyboard shortcuts”| Key | Action |
|---|---|
| Left / Right | Select the preceding or following transition. |
n or F10 | Next transition. |
a | Next authored action. |
| Space or F8 | Play / Pause. |
| Enter | Open the selected envelope. |
| Escape | Dismiss an overlay or selection. |
/ | Search for a node, port or id. |
Tab moves between controls, source identifiers and graph elements. Inputs and
tab controls keep their own keys. Function keys work when the browser delivers
them to the page; Space and n provide alternatives.
What you cannot edit here
Section titled “What you cannot edit here”This is not a development environment. It is read-only: values, source and
scenarios cannot be edited in the debugger in this version. Inputs come from
the scenario source, and there are no breakpoints. Edit the .rkg file in
your editor and restart the simulation to test a different program or input.
Continue with the Lab, journal and replay, or the command-line reference.