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

Function isUsingInspector

lib/internal/util/inspector.js:23–30  ·  view source on GitHub ↗
(execArgv = process.execArgv)

Source from the content-addressed store, hash-verified

21
22const _isUsingInspector = new SafeWeakMap();
23function isUsingInspector(execArgv = process.execArgv) {
24 if (!_isUsingInspector.has(execArgv)) {
25 _isUsingInspector.set(execArgv,
26 ArrayPrototypeSome(execArgv, (arg) => RegExpPrototypeExec(kInspectArgRegex, arg) !== null) ||
27 RegExpPrototypeExec(kInspectArgRegex, process.env.NODE_OPTIONS) !== null);
28 }
29 return _isUsingInspector.get(execArgv);
30}
31
32let debugPortOffset = 1;
33function getInspectPort(inspectPort) {

Callers 4

getRunArgsFunction · 0.85
test_runner.jsFile · 0.85
isInspectorMessageFunction · 0.85
createWorkerProcessFunction · 0.85

Calls 3

hasMethod · 0.65
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…