-
Notifications
You must be signed in to change notification settings - Fork 146
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
Node child forks can't use the debugger #19
Comments
I think it's interesting to mention this discussion on the IntelliJ / WebStorm board |
Thanks for reporting Romain!
Wouldn't that always run the childs in debug mode, also if you just want to run in production? |
Yeah I fear you're right. Furthermore I haven't found yet how to attach a remote debugger to child process inside Webstorm... Maybe this could be passed when creating the pool, as a secondary argument. var workerpool = require('workerpool');
// create a worker pool using an external worker script
var pool = workerpool.pool(__dirname + '/myWorker.js', {
node: {
childProcessExecArgs: (childIndex) => return '--debugger=' + (53027 + childIndex)
}
}); |
hm that's odd. I can hardly believe we're the first stumbling upon this problem. Maybe we could check whether the From the thead you mentioned I understand that it should be enough to pass an argument
@romainbessugesmeusy would you be interested in doing some experimenting with this to find a working solution for workerpool? |
Yeah I'll look into that 👌 |
👍 |
@romainbessugesmeusy did you already found some time to look into the debugging issue? |
This issue should have been fixed now in |
* Add scenario * extra spaces * expand uploadFile for specify different files * change action for use fieName * too early try to upload file * trying to fix login unstability Co-authored-by: Aleksey Gerasimov <[email protected]>
Hi Jos,
It looks like I can't use node debugger while spawning child processes, because each worker try to use the same port. Example:
It seems that child forks have to be created with the
--debugger={port}
. My first guess would be to change this line (WorkerHandler.js:79):What do you think?
Thanks again for your work, cheers from France
The text was updated successfully, but these errors were encountered: