Devtools

Format

Compact text for debug data: values, descriptions, world dumps, streams.

The output is meant to be read in a terminal or pasted into a prompt, so it favors one line per fact and short, stable prefixes (e12 for entity 12, f40 for frame 40). Numbers are rounded to at most 3 decimals for display; the underlying data keeps exact values.

Functions

value

Source

Prints a value on one line: {x:1.5,y:2}, [1,2,…+8], e12 for entity ids, &e12 for handles, Container{…} for class instances past the depth limit.

system

Source

One system's placements and declared access, indented under its name.

lintLines

Source

Lints first, so they are the first thing read.

description

Source

The static description as sections: lints, schema, schedules, systems, access.

dump

Source

One entity per line, then resources, machines, and pending commands.

streams

Source

One line per stream, then one indented line per reader.

sameValue

Source

Structural equality for plain data: primitives by Object.is, arrays and plain objects by their entries. Other objects compare by reference.

change

Source

before -> after. When both sides are large plain objects or arrays, only the changed paths are printed: ~ up.held: false -> true, left.held: false -> true.

lines

Source

Splits one trace event into printable lines. Frame and schedule boundaries produce no lines.

line

Source

f12 update Game/Move write e3 ...