traceGenerated
Category: Creation protocol · Session
Runs one element of a node’s Kernel and shows every step of it; with no context fields, under the last frame’s context.
Description
Section titled “Description”Runs one element of a node’s Kernel and shows every step of it; with no context fields, under the last frame’s context.
Example request
Section titled “Example request”{"id": 1, "op": "trace", "node": "gray"}Properties
Section titled “Properties”| Name | Type | Required | Description |
|---|---|---|---|
node |
string |
yes | the node |
at |
[x, y] | [x, y, z] |
no | the element in a grid or a volume; or element |
element |
integer |
no | the element in rows, or a scan’s step |
time |
number |
no | session time in seconds; 0 when not given |
rate |
number |
no | the sound clock, frames a second, which Kernels read as rate() |
queued |
number |
no | the samples (per channel) the sound device holds and has not played, which Kernels read as queued(); 0 when not given |
pointer |
[x, y] |
no | the pointer in the output’s pixels from its top left, as a Kernel’s pointer() reads it |
down |
bool |
no | whether the pointer is pressed, what pointer_down() reads |
buttons |
[integer] |
no | buttons held: 0 left, 1 right, 2 middle, then a pad’s |
wheel |
[x, y] |
no | the scroll for this frame |
sticks |
[[x, y]] |
no | a pad’s left stick, right stick and triggers, up to three pairs |
pads |
integer |
no | how many pads are connected, what pads() reads |
keys |
[integer] |
no | keys held, by the browser’s codes |
text |
string |
no | the characters typed since the last evaluation, what typed() reads; 32 at most |
window |
[w, h] |
no | the window in pixels; else the session’s |
scale |
number |
no | the window’s scale factor, with window; 1 when not given |
Answer
Section titled “Answer”kernel, at, bindings, results, calls, and when the element failed, fault: its message, the function it failed in with that function’s bindings, and the operation’s path, line and column

