You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.
Could you just forward the --debug flag, if set, to child process in some way? In the original cluster implementation, it was still possible to use the browser-based JS debugger by passing the associated debugger port of the subprocess. When testing in dev, I would limit the number of workers to 1 (in this case 2) to ensure I would always attach to an active worker.
I do - but every worker has it's own port, so you first need to start the master, then copy+paste the logged port and attach to that. It would be far easier if I could just F5 to launch a single worker
I see. The other thing you could do is limit the number of workers to 1, so that there is just one worker receiving all request. That way it should always expose its debugger on the same port.
Every worker runs in a separate process so it's hard to attach a debugger.
TCP and cluster code should not be in the same file.
The text was updated successfully, but these errors were encountered: