Guides
SvelteKit
Connect your SvelteKit app to Chrome DevTools using Subtrace
You can connect your SvelteKit app to Chrome DevTools with just one command to see the status, headers, payload, and latency of all API requests.
For this guide, we’ll use a simple SvelteKit app as an example. The app has one page (+page.svelte
) and one API handler (routes/api/hello/+server.ts
).
To get started, download the latest version of Subtrace using the following command:
Build and start your server using Subtrace:
Open the subt.link
URL in your browser to get to the Subtrace dashboard. Go to localhost:5173
and make some requests to the server to see them show up in realtime on the Subtrace dashboard!
You can find the complete source code for this example here.