Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
603 B
Plaintext
24 lines
603 B
Plaintext
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
|