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

Function setContextLineNumber

lib/internal/debugger/inspect_repl.js:697–704  ·  view source on GitHub ↗
(delta = 2)

Source from the content-addressed store, hash-verified

695 }
696
697 function setContextLineNumber(delta = 2) {
698 if (!selectedFrame) {
699 throw new ERR_DEBUGGER_ERROR('Requires execution to be paused');
700 }
701 validateNumber(delta, 'delta', 1);
702 contextLineNumber = delta;
703 print(`The contextLine has been changed to ${delta}.`);
704 }
705
706 function handleBreakpointResolved({ breakpointId, location }) {
707 const script = knownScripts[location.scriptId];

Callers

nothing calls this directly

Calls 1

printFunction · 0.70

Tested by

no test coverage detected