Vite + Vue
Set up debugger in a Vite + Vue project.
Last updated March 19, 2026
Vite + Vue
This guide covers adding debugger to a Vite + Vue project. The setup takes one step.
| Feature | Support |
|---|---|
| Server console | Yes |
| Server errors | Yes |
| HTTP requests | Yes |
| Browser script injection | Automatic |
Prerequisites
- Vite 5 or later
- Vue 3
1. Add the plugin
Import and add debuggerPlugin to your Vite config:
// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { debuggerPlugin } from '@ephem-sh/debugger/vite'
export default defineConfig({
plugins: [vue(), debuggerPlugin()],
})
That's it. No other files to create or modify.
Verify
Start your dev server:
npm run dev
The terminal output includes the debugger session line:
VITE v7.x.x ready in 500 ms
-> Local: http://localhost:5173/
-> @ephem-sh/debugger: session dev-abc123
Open your app in a browser, then query with the CLI:
npx dbg statuspnpm dlx dbg statusbun x dbg statusyarn dlx dbg statusnpx dbg browser consolepnpm dlx dbg browser consolebun x dbg browser consoleyarn dlx dbg browser consolenpx dbg server consolepnpm dlx dbg server consolebun x dbg server consoleyarn dlx dbg server consoleHow it works
The Vite plugin uses transformIndexHtml to inject the browser
client into your HTML and configureServer to add the ingest
middleware. Vue's single-file components, the Composition API, and
Vue DevTools all work normally alongside debugger.
Production safety
The apply: 'serve' option means debugger is never included in
production builds. Your production bundle has zero debugger code.
Full example
See the complete working example at examples/node/vue.



