600ms
Step 0 / 0 Calls 0 Depth 0
—
Scrub 0 / 0
How to read this trace (DFS)

ENTER steps walk down the call stack (depth-first). EXIT steps return values upward (unwinding / postorder).

Structural leaf (dashed border): a call that never spawned nested calls in this run. Base case: the algorithm's termination condition — returns without recursing further. Every base case is a structural leaf, but not every structural leaf is a base case (e.g. a tail call in a non-recursive branch).

Imported (dotted mauve border): a call to a function whose binding came from an import/require, not a declaration in this file. It can combine with any status color — the border marks origin, the fill still marks what happened.

Tree: click a node with children to fold its subtree; Shift+click jumps the scrubber to that call; Ctrl/Cmd+click collapses sibling branches to spotlight one path.

Keyboard: ←→ step · Space play/pause · HomeEnd jump · f fit · m memo · b jump to first base case · d jump to deepest frame · Ctrl+F find node

● Current step ● Base case ● Returned ● Error ● Memoized ╌ Leaf (no child calls) ┄ Imported
▾ 0
▾ —
🌳
No recursion trace loaded
Add // trace marker to a recursive function, save, then run LiveEval: Visualize Recursion