← Files RivetARCHIVED FILE

node_modules/@sentry/node-core/build/cjs/utils/debug.js

603 Bytes · Nov 7, 2026 · 13:16 UTC

↓ Download file

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

let cachedDebuggerEnabled;

/**
 * Was the debugger enabled when this function was first called?
 */
async function isDebuggerEnabled() {
  if (cachedDebuggerEnabled === undefined) {
    try {
      // Node can be built without inspector support
      const inspector = await import('node:inspector');
      cachedDebuggerEnabled = !!inspector.url();
    } catch {
      cachedDebuggerEnabled = false;
    }
  }

  return cachedDebuggerEnabled;
}

exports.isDebuggerEnabled = isDebuggerEnabled;
//# sourceMappingURL=debug.js.map

SHA-256: 62e7a9c1ac7965ea703bee3ac837f411619cfa33535bcf16b3f4a441b6fefd18