ElectronDebugger.on('detach') method
ElectronDebugger › on(‘detach’)
Unofficial
Registers a listener for thedetach event, emitted when the debugging session is terminated.Signature:
on($event: "detach", listener: ($event: ElectronEvent, reason: string) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "detach" | |
| listener | ($event: ElectronEvent, reason: string) => void | Called with the event and the reason for detaching. |
Returns: this — This debugger instance.