Skip to content

Add custom arguments to the debugged app #23

@cosad3s

Description

@cosad3s

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions