New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remote-debugging-port cannot be set using ELECTRON_EXTRA_LAUNCH_ARGS #7994
Comments
Yeah, I don't think we are handling key value pairs correctly in our The code that handles this is here: https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/environment.js#L71:L71 The test shows it's being called as I don't think that |
Opened a PR here #8001 |
@jennifer-shehane thank you Jennifer for fast reaction. These two differs greatly internally and also they mention added cmdline will be added before switches. |
The code for this is done in cypress-io/cypress#8001, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
When
set ELECTRON_EXTRA_LAUNCH_ARGS=--remote-debugging-port 40500
is used then nothing happensBUT
When I change environment.js to use
appendSwitch
instead, it works:app.commandLine.appendSwitch('remote-debugging-port', '40500')
Desired behavior:
I can set option via environment variable
Test code to reproduce
Cypress should output:
DevTools listening on ws://127.0.0.1:40500/devtools/browser/<UUID>
Versions
Windows 10, Cypress 4.10.0, using builtin Electron in Headed mode
The text was updated successfully, but these errors were encountered: