1681-engine / electron / refuseDebugLaunch
Function: refuseDebugLaunch() ​
ts
function refuseDebugLaunch(
app,
argv?,
exit?
): boolean;Defined in: src/electron/lockdown.ts:71
A packaged app started with a debugger switch quits before it opens a window. Call it first thing in the main process; exit defaults to process.exit — not app.exit, so nothing after the call may run.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
app | AppLike | undefined |
argv | readonly string[] | process.argv |
exit | (code) => void | ... |
Returns ​
boolean