MCPcopy Index your code
hub / github.com/nodejs/node / getCurrentLocation

Function getCurrentLocation

lib/internal/debugger/inspect_repl.js:407–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405 }
406
407 function getCurrentLocation() {
408 if (!selectedFrame) {
409 throw new ERR_DEBUGGER_ERROR('Requires execution to be paused');
410 }
411 return selectedFrame.location;
412 }
413
414 function isCurrentScript(script) {
415 return selectedFrame && getCurrentLocation().scriptId === script.scriptId;

Callers 2

isCurrentScriptFunction · 0.85
setBreakpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…