debugtron icon indicating copy to clipboard operation
debugtron copied to clipboard

Add custom arguments to the debugged app

Open cosad3s opened this issue 1 year ago • 0 comments

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!

cosad3s avatar Jan 16 '24 11:01 cosad3s