Skip to content
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

grunt.util.spawn should handle --debug and --debug-brk to prevent port reusing #1420

Closed
segrey opened this issue Dec 23, 2015 · 5 comments
Closed

Comments

@segrey
Copy link

segrey commented Dec 23, 2015

Currently, if grunt main process is started with --debug-brk=<debug port> (or --debug=<debug port>), grunt.util.spawn inherits this cli option and starts child process with the same debug port. Thus, the spawned child process fails to start, because the specified debug port is already bound (by the main grunt process).
Possible fix could be to find an available port (if the main grunt process is started in debug mode) and specify the found free port when spawning the child process. Thanks!

@segrey
Copy link
Author

segrey commented Dec 25, 2015

JFYI, I've filed similar, but a bit more generic issue in nodejs project: nodejs/node#4419
If it gets fixed there, this issue can be closed.

@inthegarage
Copy link

Hi Segrey,

That issue is now fixed, what is the status of this issue therefore?

@segrey
Copy link
Author

segrey commented Apr 18, 2016

Yep, closing.

@segrey segrey closed this as completed Apr 18, 2016
@inthegarage
Copy link

Thanks Segrey, Do you know when this will be available? I've tried 5.10.1 and the port 0 is still rejected. I've tried debug-port=0 and debug-brk=0 all to no avail.

@segrey
Copy link
Author

segrey commented Apr 19, 2016

I think nodejs/node#5025 should be tracked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants