You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VS Code shows “Unbound breakpoint” when setting breakpoints in Node.js core files under lib/internal #5103
Darwin Scohearts-MacBook-Pro.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041 arm64
Subsystem
Other
Description
When I try to debug Node.js core by setting breakpoints directly in files under lib/internal/* (opened from the Node.js source checkout) using VS Code, those breakpoints remain Unbound and never hit.
Activity
avivkeller commentedon Oct 9, 2025
The node executable bundles all of its source files. Adding breakpoints to the
libfolder, which, are the un-bundled files, won't do anything.However, if you compile the node with https://github.com/nodejs/node/blob/main/BUILDING.md#loading-js-files-from-disk-instead-of-embedding, VSCode breakpoints will work.