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:

Parameter Type Description
event "detach" The event name.
listener (event: ElectronEvent, reason: string) => void Called with the event and the reason for detaching.

Returns: thisThis debugger instance.