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
Debuggers cannot set breakpoints in certain Node.js internals #51067
Darwin mbp.peet.io 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64 x86_64
Subsystem
inspector
What steps will reproduce the bug?
Have a script containing setTimeout(() => {}, 0); setTimeout(() => {}, 0)
Debug the script in your choice of debugger.
Step into setTimeout and set a breakpoint in `timers. Continue.
How often does it reproduce? Is there a required condition?
100%
What is the expected behavior? Why is that the expected behavior?
The breakpoint should bind and the debugger should pause in the next call to setTimeout()
What do you see instead?
The debugger doesn't pause and the process exits
Additional information
Chrome devtools will set the breakpoint via Debugger.setBreakpointByUrl , but setting the breakpoint by the script ID (Debugger.setBreakpoint) of timers also does not work, returning error -32000 "Could not resolve breakpoint"
This regressed between Node 14 and Node 16
This appears to only affect scripts loaded into executionContextId: 0. Breakpoints in other scripts, such code in crypto, work without issue.
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.
Activity
github-actions commentedon May 25, 2026
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
github-actions commentedon Jun 28, 2026
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.