Automatically attach VS Code debugger to Bun processes.
Features
Auto-detection of Bun processes with --inspect-wait
Instant debugger attachment
Fast response (checks every 300ms)
Zero configuration required
Installation
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "Bun Debugger Auto-Attach"
Click Install
Usage
Run Bun with debug flag:
bun --inspect-wait=127.0.0.1:9229 your-script.ts
The extension automatically detects and attaches the debugger.
Supported Commands
# 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
Troubleshooting
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