electron: `--remote-debugging-port` doesn't work since 1.6.11
--remote-debugging-port is used to debug renderer process in the IDE.
It works in the Electron 1.5.1, but doesn’t work in the 1.6.11+ (I have checked 1.6.11, 1.7.5 and 1.8.0).
Project — https://github.com/develar/__debug_electron-quick-start
Change electron version in the package.json from "1.5.1" to "1.6.11" to reproduce — WebStorm/VSCode cannot connect to localhost:9222
Debug works only if add app.commandLine.appendSwitch('remote-debugging-port', '9222') to main.js
Is it regression or intended change?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 16 (13 by maintainers)
@MarshallOfSound
--inspectis used to debug main process,--remote-debugging-portto debug renderer.@MarshallOfSound this seems to have regressed for me. I’m actually getting a timeout for some reason. I tired electron 3.0.0 beta 3, 5, and 8.
It was working before, but suddenly stopped. It’s odd it will actually hang for a while and then timeout:
Using node 9.11.2. I haven’t seen anyone log a timeout issue, should I open a new ticket?
@prigara No problem, good to hear it’s cleared itself up. I’m going to leave this open so I can write some tests to make sure this doesn’t break in the future but at least we know it’s working as expected now 😃
Thanks for reaching out!
Because we treat our issues list as the team’s backlog, we close issues that are questions since they don’t represent a task needing to be completed. For most questions about Electron there are a lot of options. Check out the Electron community. There are also a bunch of helpful people in this community forum that should be willing to point you in the right direction.