mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
Implements the --inspect-browser flag which combines the functionality of --inspect-wait with automatic browser opening. This flag: - Waits for a debugger connection like --inspect-wait - Accepts an optional URL parameter like --inspect - Automatically opens the debug URL in the user's browser - Uses platform-appropriate browser opener (open/xdg-open/start) The implementation adds: - CLI flag parsing in Arguments.zig - New open_in_browser field in Command.Debugger struct - Browser opening logic using Bun.spawn() in debugger.ts - Tests with fake xdg-open to verify browser opening 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>