FwaitForDebugger
Bun

function

inspector.waitForDebugger

function waitForDebugger(): void;

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

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