PANE

Bun users can't debug Node.js processes in VS Code

35 posts since Aug 2023, all from GitHub.

“What version of Bun is running? 1.4.6 canary.1+e3bbc3fc3 What platform is your computer? Darwin 27.0.0 arm64 arm What steps can reproduce the bug? What is the expected behavior? What do you see instead? NOTICE src instead of src/foo.ts when using error.toString() Additional…”
GitHub
“What version of Bun is running? 1.2.21+7c45ed97d What platform is your computer? Microsoft Windows NT 10.0.26100.0 x64 What steps can reproduce the bug? Bun shows duplicated/superfluous lines in the stack trace from an error. This is NOT a minimal reproduction, however it should…”
GitHub
“What version of Bun is running? 1.2.17 What platform is your computer? windows10 What steps can reproduce the bug? Bun failed to remap this bin to its proper location within node modules. This is an indication of a corrupted node modules directory. Please run 'bun install force'…”
GitHub

VS Code's 'Attach to Node Process' fails to connect to Bun processes due to port mismatches and missing compatibility in the debug protocol. Users cannot attach the debugger despite Bun appearing in the process list.

devtoolsdebuggingjavascriptruntimeide
FIT
0%
SIGNAL
52%
SOURCES35
FRESHEST POST4D AGO
TRACKED SINCE111D AGO

SOURCES (35)

“What version of Bun is running? 1.4.6 canary.1+e3bbc3fc3 What platform is your computer? Darwin 27.0.0 arm64 arm What steps can reproduce the bug? What is the expected behavior? What do you see instead? NOTICE src instead of src/foo.ts when using error.toString() Additional information https://github.com/vjpr/issue bun…”

GITHUB4d ago

“What version of Bun is running? 1.4.6 canary.1+7bb427f3b (npm bun@1.4.5 canary.20261120.1 ) What platform is your computer? macOS arm64 What steps can reproduce the bug? package.json (installed with npm i legacy peer deps ): eslint.config.js : A.jsx : Run npx eslint A.jsx and bun lint A.jsx . What is the expected behavior? The same report as ESLint with the installed eslint plugin react hooks 7.1.1: no problems. The plugin's compiler treats react native reanimated shared values as mutable, so wr”

GITHUB12d ago

“What version of Bun is running? 1.4.3+c6da4a4d3 What platform is your computer? Darwin 27.0.0 arm64 arm What steps can reproduce the bug? 1. Create an empty folder and open it in VSCode. 2. Make sure to have the Bun extension installed and enabled. 3. Create a script.js file with the following code: 4. Create the .vscode/launch.json file with the following content: 5. Start the debug session with this configuration (press F5 ). 6. Make any change to script.js and save the file. What is the expec”

GITHUBOct 14

“bun run lint does not run at all in this repo, on development or on any branch cut from it. ESLint fails while loading its own modules, before it reads a single source file: Cause package.json pins typescript at ^7.0.2 and @typescript eslint/ at ^8.60.0 . TypeScript 7 no longer exposes the ts.Extension enum where typescript estree reads it: typescript eslint 8 does not support TypeScript 7. Both pins are already on development , so this is not specific to any branch in flight. Effect CI is unaff”

GITHUBAug 26

“What version of Bun is running? 1.3.14+0d9b296af What platform is your computer? Linux 7.1.5 arch1 2 x86 64 unknown What steps can reproduce the bug? create a file like lib.spec.js with the following content: running bun test produces a test error. adding a jest.config.js file with the contents and running bunx jest test . passes both tests. running either test runner with u changes the snapshot to their preferred formatting. What is the expected behavior? in codebases that use both bun and jest”

GITHUBAug 18

“What version of Bun is running? 1.4.0 canary.1+b7a043103 What platform is your computer? Linux 7.1.8 1 cachyos x86 64 unknown What steps can reproduce the bug? Save the following as repro.mjs : Run it as an ES module: This also occurs during SvelteKit SSR. SvelteKit's make trackable function creates a URL and assigns an instance specific Symbol.for('nodejs.util.inspect.custom') function in packages/kit/src/utils/url.js:139 148 . Loading a server rendered route reaches this code and throws. What”

GITHUBAug 13

“What version of Bun is running? 1.3.12+700fc117a What platform is your computer? Linux 6.6.87.2 microsoft standard WSL2 x86 64 x86 64 What steps can reproduce the bug? Bun does not export markAsUncloneable from node:worker threads , even though the Bun reference docs claim the API is supported (the docs appear to be auto generated from Node's type declarations). Minimal repro — the API itself is missing: Real world repro via undici 8.1.0, which is where this actually bites users. undici 8.0.3 re”

GITHUBApr 17

“What version of Bun is running? 1.3.11 What platform is your computer? Windows What steps can reproduce the bug? 1. Create test.ts below in cwd 2. Open cwd in VS Code. 3. Run bun inspect brk .\test.ts . 4. Open VS Code, Ctrl Shift P Debug: Attach to Node Process <img width="617" height="60" alt="Image" src="https://github.com/user attachments/assets/21cfff0f c3c6 45f2 8c91 e5fdee829896" / 5. bun appears to be there, though with the wrong port it shows 9229 , while during launch it showed ws://lo”

GITHUBApr 5

“What version of Bun is running? 1.3.10+30e609e08 What platform is your computer? Microsoft Windows NT 10.0.26200.0 x64 What steps can reproduce the bug? This in server.js : This in index.html : This in script.js : Run server.js and navigate to http://localhost:3000. Note that there's a source map even though there shouldn't be. What is the expected behavior? From https://bun.com/docs/bundler/fullstack fullstack dev server: <img width="580" height="331" alt="Image" src="https://github.com/user at”

GITHUBMar 11

“What version of Bun is running? 1.3.7 What platform is your computer? Darwin 25.2.0 arm64 arm What steps can reproduce the bug? 1. please check my mini repo: https://github.com/Aokoooooo/dev bun next, which is generate by bunx create next app@latest 2. bun install to install deps 3. bun dev to start the project in the vscode's JS debug terminal What is the expected behavior? start the nextjs server (I can start the server in the normal terminal) What do you see instead? No response Additional in”

GITHUBFeb 3

“What version of Bun is running? 1.3.0+b0a6feca5 What platform is your computer? Darwin 24.5.0 arm64 arm What steps can reproduce the bug? npm install exceljs create test file run bun vscode debugger What is the expected behavior? Should skip node modules code go directly to debugger statement What do you see instead? Clicking Continue does not work When using step over, debugger goes to node modules/uuid node modules/bluebird then finally debugger Additional information Video launch.json”

GITHUBOct 2025

“What version of Bun is running? 1.2.20+6ad208bc3 What platform is your computer? Darwin 24.6.0 arm64 arm What steps can reproduce the bug? 1. Create a index.ts file: 2. Compile it: 3. Run it: What is the expected behavior? Output in terminal: What do you see instead? Output in terminal: Additional information No response”

GITHUBSep 2025

“What version of Bun is running? 1.2.21+7c45ed97d What platform is your computer? Microsoft Windows NT 10.0.26100.0 x64 What steps can reproduce the bug? Bun shows duplicated/superfluous lines in the stack trace from an error. This is NOT a minimal reproduction, however it should demonstrate the issue clearly: And this is the stack trace from Node.js: Here is the code that generates the stack frame output: And then you can use this function to in other functions, and by using those functions you”

GITHUBSep 2025

“What version of Bun is running? 1.2.17 What platform is your computer? windows10 What steps can reproduce the bug? Bun failed to remap this bin to its proper location within node modules. This is an indication of a corrupted node modules directory. Please run 'bun install force' in the project root and try it again. If this message persists, please open an issue: https://github.com/oven sh/bun/issues 2025 06 26 13:45:29.469 [info] [Error 1:45:29 PM] Biome language server closed 2025 06 26 13:45:”

GITHUBJun 2025

“What version of Bun is running? 1.2.16 What platform is your computer? Darwin 24.5.0 arm64 arm What steps can reproduce the bug? Just like the video below, bun can run normally in the terminal, but it can't run properly in the npm script of vscode. https://github.com/user attachments/assets/9b6dae86 df4f 4071 a530 803c724126cd What is the expected behavior? No response What do you see instead? No response Additional information No response”

GITHUBJun 2025

“What is the problem this feature would solve? I've lately expanded using Bun to test outputs from commandline utilities due to Bun's speed and how handy writing shell commands are with the $ environment. During this use case I've really needed a way to retrigger the tests when an external program that is to be interacted with in the test files is rebuild, but it seems Bun lacks any kind of mechanism to pass custom patterns that would refer to non .js/.ts files? Maybe a vitest like watchTriggerPa”

GITHUBJun 2025

“What version of Bun is running? 1.2.15 What platform is your computer? x64 windows What steps can reproduce the bug? 1. build a standalone executable 2. setup the appropriate env variable for the inspector 4. run the executable What is the expected behavior? 1. opening https://debug.bun.sh/ {HOST}:{PORT}/{PREFIX} should be able to attach to the debugger, and start debugging session. What do you see instead? when using ?wait=1 or ?break=1 in the env the application halt, but the debugger can not”

GITHUBJun 2025

“What version of Bun is running? 1.2.12 canary.21+5f58be4ed What platform is your computer? Linux 6.8.0 59 generic x86 64 x86 64 What steps can reproduce the bug? node: application/json bun: application/json;charset=utf 8 What is the expected behavior? No response What do you see instead? No response Additional information No response”

GITHUBMay 2025

“What version of Bun is running? 1.2.12+32a47ae45 What platform is your computer? Windows 10 What steps can reproduce the bug? 1) Compile into executable some node.js project. No sourcemap uasge! bun build dist/index.js compile minify bytecode outfile my api.exe or bun build dist/index.js compile bytecode outfile my api.exe 2) Open my api.exe file in Notepad++ for example. What is the expected behavior? Binary execuble file must be binary, without plain js, css, etc. What do you see instead? Imag”

GITHUBMay 2025
Source preview · github.com

What version of Bun is running? 1.2.1 What platform is your computer? Windows Server 2022, Windows Server 2025, GitHub Actions What steps can reproduce the bug? I am building something where I…

github.comJan 2025

“What version of Bun is running? 1.1.42+50eec0025 What platform is your computer? Linux 6.12.7 1 cachyos eevdf lto x86 64 unknown What steps can reproduce the bug? 1. Create any bun executable file. touch empty.ts 2. Run bun run inspect brk ./empty.ts 3. Open debug link in Firefox (like https://debug.bun.sh/ localhost:6499/xxxxxxx ) 4. Reload page, get following error: What is the expected behavior? Debugger not crashing What do you see instead? Image Additional information No response”

GITHUBJan 2025

“What version of Bun is running? 1.1.32 What platform is your computer? Linux 6.11.7 arch1 1 x86 64 unknown What steps can reproduce the bug? Astro Info Link to Minimal Reproducible Example https://github.com/djkato/astrojs svelte error What is the expected behavior? To either give proper reasons why something is broken, or just work? Running with pnpm the repro repo works fine. What do you see instead? 1. [ERROR] vite ssr import 2 .TextLine is not a function for unknown reason in many of my proj”

GITHUBNov 2024

“What version of Bun is running? 1.1.16 What platform is your computer? Microsoft Windows NT 10.0.22631.0 x64 What steps can reproduce the bug? I Have a NestJS project. Here is the command to run project into package.json file : "start:dev": "bun watch ./apps/api/src/main.ts" When i run this command, "bun start:dev api", I get this error : Even if i change port number, i always get this error. What is the expected behavior? No response What do you see instead? No response Additional information N”

GITHUBJun 2024

“What is the problem this feature would solve? Allow bun to run/debug single files directly in VSCode without needing to open a folder. This would make it easier to run/debug random scripts opened in VSCode. Suppose we have the following folder structure: When this folder is opened in VSCode, both node and bun can debug/run the files correctly. However, if no folder is opened, node can still debug/run 111/111.js , 222.js and other opened files correctly, but bun will refuse to debug/run these fil”

GITHUBJun 2024

“What version of Bun is running? 1.1.10+5102a9443 What platform is your computer? Microsoft Windows NT 10.0.19045.0 x64 What steps can reproduce the bug? Install lint staged and put the configuration in the package.json: "lint staged": { " / .{js,jsx,ts,tsx}": [ "eslint ext .js,.jsx . fix", "prettier write" ], " / .{html,json,css,scss,md,mdx}": [ "prettier w" ] } then run bunx bun lint staged What is the expected behavior? Be able to get the package.json file where the lint staged config is store”

GITHUBMay 2024

“What version of Bun is running? 1.1.6 What platform is your computer? Microsoft Windows NT 10.0.22631.0 x64 What steps can reproduce the bug? 1. Create a simple express server listening on port 5000 and logging "Server listening on port 5000" 2. Run the script with hot 3. When bun restarts the script, 2 logs of "Server listening on port 5000" show up. What is the expected behavior? Only 1 log of "Server listening on port 5000" showing up. What do you see instead? No response Additional informati”

GITHUBMay 2024

“What version of Bun is running? 1.1.3+2615dc742 What platform is your computer? Darwin 23.4.0 arm64 arm What steps can reproduce the bug? Using this test code: when running bun test , he console throws an error message. What is the expected behavior? Success execution of the test: ✓ Toggle Rendering and Interaction is triggering a click on the input when the label is clicked What do you see instead? Additional information When commenting the userEvent and subsequent line, the test is passed: ✓ T”

GITHUBApr 2024

“What is the problem this feature would solve? Hello, I use Bun VSCode extension, and it adds the following options ("Bun Debug" and "Bun Run") in my package.json file: scn For some specific reasons, I want to hide these. What is the feature you are proposing to solve the problem? Please provide adding a workspace level extension settings (i.e. settings.json file in my workspace) in order to hide or disable it. What alternatives have you considered? There is no alternative to manually do it.”

GITHUBMar 2024

“What is the problem this feature would solve? This would allow debugging of unit tests with the vscode debugger. The current implementation allows adding 'test' to runtimeArgs, but still requires a program option which allows only a single entry file, rather than, say, a directory. Also, breakpoints under this scenario do not seem to map correctly. What is the feature you are proposing to solve the problem? Allow test specific details to launch configuration, something like this: What alternativ”

GITHUBFeb 2024

“What is the problem this feature would solve? we need to have possibility to inspect js code using bun without being online What is the feature you are proposing to solve the problem? Easy debeug What alternatives have you considered? .”

GITHUBJan 2024

“What version of Bun is running? 1.0.23+3c785c88f What platform is your computer? Linux 5.15.133.1 microsoft standard WSL2 x86 64 x86 64 VSCode: Version: 1.86.0 insider (user setup) Commit: 271fb7fbd599b49a1482ea7284a50b3229317f96 Date: 2024 01 19T05:37:08.195Z Electron: 27.2.1 ElectronBuildId: 26149897 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18 electron.0 OS: Windows NT x64 10.0.22621 What steps can reproduce the bug? 1. Clone https://github.com/dayblox/bun ts 2. bun i 3. Place a”

GITHUBJan 2024

“What version of Bun is running? No response What platform is your computer? No response What steps can reproduce the bug? adapted from my journal processing code: <img width="687" alt="image" src="https://github.com/oven sh/bun/assets/24465214/00910d7d 094a 4dea aead 634aeb390247" What is the expected behavior? print that the current working directory doesnt exist What do you see instead? it says the binary doesnt exist Additional information No response”

GITHUBJan 2024

“What version of Bun is running? 1.0.17+5e60861c3 What platform is your computer? Darwin 23.1.0 arm64 arm What steps can reproduce the bug? 1. Clone https://github.com/infernojs/inferno typescript example 2. Ensure node isn't installed 3. bun install 4. bun start What is the expected behavior? Project runs as expected and successfully starts a server on port 8080. What do you see instead? Additional information This runs fine if node is installed in the machine, but fails if it is not.”

GITHUBDec 2023

“What version of Bun is running? 1.0.11 What platform is your computer? Darwin 22.6.0 x86 64 i386 What steps can reproduce the bug? Run in console bun <(echo "console.log('hello')") What is the expected behavior? Command prints hello to stdout. What do you see instead? error: script not found "/dev/fd/13" Additional information <img width="375" alt="image" src="https://github.com/oven sh/bun/assets/130013/6d61147f 7423 40fb 973c 326b88a2e454"”

GITHUBNov 2023

“What version of Bun is running? 0.8.1+16b4bf341acc0f4804f0b6bdf5298c180cd00366 What platform is your computer? Darwin 22.5.0 x86 64 i386 What steps can reproduce the bug? Running this code bug.js with node.js with deno with bun What is the expected behavior? The first line of the stack should start with at Class.name instead of at name . What do you see instead? No response Additional information No response”

GITHUBAug 2023

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.

Related panes

/ same corner of the problem