Skip to content

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 ​

ParameterTypeDefault value
appAppLikeundefined
argvreadonly string[]process.argv
exit(code) => void...

Returns ​

boolean

Released under the MIT License.