debugtron
debugtron copied to clipboard
Add custom arguments to the debugged app
Is there a way to pass custom arguments the the debugged Electron app ? I tried with a shortcut (lnk) and I cannot see options in the UI or config file.
Edit: the only way I found for the moment is to modify the file https://github.com/pd4d10/debugtron/blob/main/src/main/actions.ts with, for example:
const sp = spawn( app.exePath, [ `--myarg=myvalue`, `--inspect=${nodePort}`, `--remote-debugging-port=${windowPort}` ], { cwd: process.platform === 'win32' ? path.dirname(app.exePath) : '/', } )Then build with
npm install && npm run start
Thanks!