MenuTimeline / Step Detail

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.

const rest = factorial(n - 1) is one Step; the next Step is already inside the call.

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.

Each callback is its own Step: score >= 10 → true for 12, → false for 7.

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+

  1. Open Settings → Timeline.
  2. Turn Step inside lines on for Inside lines, or off for Lines.
Step inside lines in Settings → Timeline: on records Inside lines.

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.

Esc

Type to search every docs page.

JSpark is downloading

When you open JSpark-Setup.exe, Windows may stop it once, because the installer isn’t code-signed yet. If the file came from jspark.app:

A blue Windows box, “Windows protected your PC”: Microsoft Defender SmartScreen prevented an unrecognised app from starting. Under it, the link More info, and the button Don’t run.

1Click More info.

The same box after More info: Application JSpark-Setup-1.4.0.exe, Publisher Unknown publisher, and the buttons Run anyway and Don’t run.

2Then click Run anyway.

You see this only once: updates install inside the app. More in Install JSpark.