Skip to content

ElectronDebugger.on('detach') method

ElectronDebugger › on(‘detach’)

Unofficial

Registers a listener for the detach event, emitted when the debugging session is terminated.

Signature:

on($event: "detach", listener: ($event: ElectronEvent, reason: string) => void): this

Parameters:

ParameterTypeDescription
$event"detach"
listener($event: ElectronEvent, reason: string) => voidCalled with the event and the reason for detaching.

Returns: this — This debugger instance.