Add native Bun debugger support #49284
zx8086
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
Summary
Zed's JavaScript debugger adapter doesn't work with Bun's WebKit Inspector Protocol. Breakpoints and debugger; statements are not hit when debugging
Bun applications.
Current behavior
Expected behavior
Breakpoints set in Zed and debugger; statements should pause execution when debugging Bun applications.
Workaround
Bun's native web debugger works correctly:
bun --inspect-wait src/index.ts
This opens a Chrome DevTools interface at https://debug.bun.sh/... where breakpoints work as expected.
Environment
Additional context
Bun uses the WebKit Inspector Protocol on port 6499 by default, which differs from Node.js. The underlying vscode-js-debug adapter doesn't support Bun
natively (confirmed in #49033). A Bun-specific debug adapter would improve the experience for Bun users.
Beta Was this translation helpful? Give feedback.
All reactions