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"The event name.
listener(event: ElectronEvent, reason: string) => voidCalled with the event and the reason for detaching.

Returns: thisThis debugger instance.