waitForDebugger - Node documentation
function waitForDebugger

Usage

import { waitForDebugger } from "node:inspector";

Blocks until a client (existing or connected later) has sentRuntime.runIfWaitingForDebugger command.

An exception will be thrown if there is no active inspector.

Return Type

void