Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

fix(blockingproxy): don't pass "--inspect" to the child process#4398

Open
wncm wants to merge 1 commit intoangular:masterfrom
wncm:fix-debug-with-bp
Open

fix(blockingproxy): don't pass "--inspect" to the child process#4398
wncm wants to merge 1 commit intoangular:masterfrom
wncm:fix-debug-with-bp

Conversation

@wncm
Copy link
Copy Markdown
Contributor

@wncm wncm commented Jul 21, 2017

If Protractor is started with --inspect[-brk], child_process.fork
will create a BlockingProxy process with the same argument, and that
will lead to "address already in use" error.

If Protractor is started with `--inspect[-brk]`, `child_process.fork`
will create a BlockingProxy process with the same argument, and that
will lead to "address already in use" error.
@wncm
Copy link
Copy Markdown
Contributor Author

wncm commented Jul 21, 2017

Debug in WebStorm doesn't work if BlockingProxy is enabled.
The new BlockingProxy process tries to use the same port for inspector and fails:

/usr/local/bin/node --inspect-brk=46857 /home/wncm/cyletrip/protractor/built/cli.js ./spec/driverProviderLocalConf.js --useBlockingProxy
Debugger listening on ws://127.0.0.1:46857/803e1be6-e7dc-4cea-afb9-b6e2a4610cd9
For help see https://nodejs.org/en/docs/inspector
Debugger attached.
(node:857) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[22:09:28] I/launcher - Running 1 instances of WebDriver
[22:09:28] I/local - Starting selenium standalone server...
[22:09:29] I/local - Selenium standalone server started at http://192.168.43.64:48641/wd/hub
[22:09:29] I/BlockingProxy - Starting BlockingProxy with args: --fork,--seleniumAddress,http://192.168.43.64:48641/wd/hub
[22:09:29] E/BlockingProxy - Starting inspector on 127.0.0.1:46857 failed: address already in use
[22:09:29] E/BlockingProxy - Exited with 12
[22:09:29] E/BlockingProxy - signal null
[22:09:29] E/launcher - Error: Error: BP exited with 12
    at ChildProcess.bpProcess.on.on.on (/home/wncm/cyletrip/protractor/built/bpRunner.js:37:24)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
[22:09:29] E/launcher - Process exited with error code 100
Waiting for the debugger to disconnect...
Debugger listening on ws://127.0.0.1:46857/803e1be6-e7dc-4cea-afb9-b6e2a4610cd9
For help see https://nodejs.org/en/docs/inspector

Process finished with exit code 100

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants