Build, run and debug your web app

Start the dev server beside your API, see every call the page makes travel to the endpoint it hit, and follow the lines a click runs through your components, in order.

2 min read

Before you start

  • Node, Deno or bun on your Mac, and the package manager the lockfile names.
  • Chrome, or another Chrome-family browser, to follow a click.

At a glance#

Build

A panel named for the package manager: Scripts and Packages. Workspaces in the build graph.

Run

The dev server first among the scripts, drawn as the Web app in Live wire.

Debug

The Tracer follows a click line by line, in a Chrome window of its own.

Build#

The panel is named for the package manager (npm, pnpm, yarn or bun), with Scripts and Packages tabs; a monorepo lists each package. The Build graph reads npm, pnpm, yarn and bun workspaces and TypeScript project references, so a change to a shared package shows which apps build again. ⌘⇧B builds the open file’s project and opens each error at its line.

Run it beside the API#

Found in this folder (⌥R) reads package.json and deno.json and lists every script, the ones that start something first, run through the package manager the lockfile names. A Rust front end’s dev server (Leptos, Trunk, Dioxus) is offered the same way.

Start it in a group with the backend and open Live wire. The dev server is drawn as the Web app, and when the page calls the API the call travels on the picture to the endpoint it hit, with its status. A page whose Origin is the dev server’s address is matched to it exactly. Your page, its dev server’s proxy and the API all keep their usual addresses.

Debug: follow a click#

Open the Tracer in Explore. It lists the web apps running on your Mac.

WayHow
Any dev serverChoose the app, or type Another address (http://localhost:5173/). WTFCode opens it in a Chrome window of its own and probes the scripts as that window loads them, mapped to your files through the dev server’s source maps. The dev server isn’t restarted or touched; sign in to your app once in that window.
A Vite appOr add WTFCode’s Vite plugin, and any tab of the dev server reports.

Click in your app and the editor goes through each line it ran, across components, in order, with awaits kept apart. Pause, step back, or Play every step. If the click calls the API, follow the backend too.

Current limits#

  • Chrome-family browsers only. Firefox and Safari can’t be attached to, nor a dev server that serves code inside eval.
  • Hot reload while recording hasn’t been checked in a browser yet.
  • Live wire reads HTTP/1.1 on your Mac. WebSocket upgrades are refused for now.

Next steps#

Something unclear or out of date? Tell us; a person on the team reads every note.

Search every guide: features, settings, keys and troubleshooting.

Try