Docs / Timeline
Step Detail
Lines records one Step per statement. Inside lines, in JSpark+, also records each call, callback and loop check.
On this page
Step detail is how much of a Run the Timeline records. JSpark records Lines. JSpark+ can also record Inside lines.
Lines
Each statement the code runs is one Step. A chained call such as scores.filter(…).map(…) is one Step. A loop's header is one Step, when the loop starts; each statement in its body is a Step on every turn.
Inside lines JSpark+
In JSpark+, Inside lines also records the calls, callbacks and loop checks inside each line. Each one is an Inner Step. Next step still moves one Step at a time, Inner Steps included.
TimelineEditing is paused while you replay · Esc to go back
Nothing in scope
everywhere
everywhere
in this callback
everywhere
in this callback
everywhere
in this callback
everywhere
in this callback
everywhere
everywhere
everywhere
in this callback
everywhere
in this callback
everywhere
everywhere
everywhere
in this callback
everywhere
in this callback
everywhere
everywhere
everywhere
everywhere
An Inner Step is drawn apart from a statement:
- Its cell on the bar is lighter, and only its part of the line is lit.
- The bar says what it is inside, and which pass:
inside scores.filter(…) · 2 of 4. - What it came to is shown after the line:
score >= 10 → true. - Point at an operator or a bracket inside the lit part to see the same value, as
this step →.
Inside lines records more Steps for the same code, so it reaches the recording limit sooner. See What is not recorded.
Choose the detail JSpark+
- Open Settings → Timeline.
- Turn Step inside lines on for Inside lines, or off for Lines.
Also steps into calls, callbacks and loops. Hits the limit sooner.
If the Timeline is open when you change it, JSpark records the Snippet again straight away, at the new detail. Otherwise the next recording uses it. A recording made with Lines that is still on screen says lines only — record in detail on the bar: click it to record again with Inside lines.
In JSpark, the switch stays off and is marked +, and turning it on says what JSpark+ adds. The Timeline records Lines.
The pictures show JSpark on a Mac. On Windows, the window buttons are at the top right, the menus are in theMenu button at the left end of the tabs, and shortcuts use Ctrl where a Mac uses ⌘. The rest works the same way.