Automatically attach VS Code debugger to Bun processes.
- Auto-detection of Bun processes with --inspect-wait
- Instant debugger attachment
- Fast response (checks every 300ms)
- Zero configuration required
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Bun Debugger Auto-Attach"
- Click Install
Run Bun with debug flag:
bun --inspect-wait=127.0.0.1:9229 your-script.ts
The extension automatically detects and attaches the debugger.
# Basic usage
bun --inspect-wait script.ts
# Custom port
bun --inspect-wait=9230 script.ts
# Custom host and port
bun --inspect-wait=127.0.0.1:9229 script.ts
- Check if port is available:
lsof -i :9229
- Verify Bun process:
ps aux | grep "bun.*--inspect"
- Check VS Code Developer Console for "Bun Auto-Attach Active" message
MIT License