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 }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
$ git rev-list --abbrev-commit HEAD^..HEAD
d2a6002
$ out/Release/node debug -p $(pgrep node)
connecting to port 5858... ok
debug> setBreakpoint(20)
Warning: script 'undefined' was not loaded yet.
_debugger.js:1396
var escapedPath = script.replace(/([/\\.?*()^${}|[\]])/g, '\\$1');
^
TypeError: Cannot call method 'replace' of undefined
at Interface.setBreakpoint (_debugger.js:1396:32)
at repl:1:1
at Object.exports.runInContext (vm.js:60:17)
at Interface.controlEval (_debugger.js:969:21)
at REPLServer.b [as eval] (domain.js:251:18)
at Interface.<anonymous> (repl.js:277:12)
at Interface.EventEmitter.emit (events.js:103:17)
at Interface._onLine (readline.js:194:10)
at Interface._line (readline.js:523:8)
at Interface._ttyWrite (readline.js:798:14)
Fix Interface.setBreakpoint() to correctly handle an attempt to set a
breakpoint in the current script when there is no current script.
This usually happens when the debugged process is not paused.
Fixes: #6453
PR-URL: #6460
Reviewed-By: Chris Dickinson <[email protected]>
/cc @bajtos - seems to have been introduced in 5db936d.
The text was updated successfully, but these errors were encountered: