Skip to Content

Code per action

The code a step ran, the line that drew a spot, and the screens that run some code.

3 tasks, 3 questions answered.

The inspector
The inspectorThe action that led to the chosen screen, how many symbols ran, and under Details the run's conditions.The inspector
Code, larger
Code, largerThe same code in a pane of its own, with the handler and this step's symbols listed beside it.Code, larger

Read the code a tap ran

Each step keeps the code it ran, at the commit that was captured.

  1. Select a screen on the map.
  2. Choose Show Code on its title line, or press ↩.
  3. Read the action at the top, then the code under it. Lines that ran fully and partly have different backgrounds.
  4. Open Details for the run's conditions, and the outline for the file's symbols.

Wrong turn? The inspector stayed closed? Selecting a screen leaves a closed inspector closed; Show Code opens it.

Open the line that drew a spot

The shortest way from a pixel to its source.

  1. Hold ⌥ and click a spot on a screen.
  2. The code pane opens on the line that drew it.

Wrong turn? Not the element you meant? ⌘-click the spot to select the element there first.

Find the screens that run some code

Before changing a function, see every screen it touches.

  1. Right-click a symbol or a file in the code pane, or select lines in the editor.
  2. Choose Screens That Ran It. The map narrows to the journeys whose steps ran it, and the other screens are dimmed.
  3. Or type the search in the sidebar's filter, such as ran:path/File.kt or ran:#Name.

Wrong turn? Click the filter to edit the search, or clear it to see the whole map.

How it works

What does the inspector show for a step?

The action, then the code, both as the capture recorded them.

  • The action that led to the chosen screen, the typed action the app dispatched, and the navigation.
  • The run's conditions, such as the seed, the locale and a frozen clock.
  • The code the step ran. Accessors stay hidden until you ask.

Whose code shows when a step called a server?

The server's own, when another core captured it.

  • The server's code shows under its own heading, read from that repository at the commit it ran.
  • The button under that heading, named for the server as in Choose core's Folder…, tells PitaFix where that repository is on this Mac.

Which screens count as having run some code?

Only screens a capture saw run it.

  • The search can name a file, lines of it or a symbol: ran:path/File.kt:10-20, ran:path/File.kt#Name.
  • Routes no capture reached aren't counted; they are under Not reached on the Screens tab.
  • Edit › Find Screens That Ran… starts a search from the menu.

On this page