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

Listen on unix socket in debugger #5059

Closed
3y3 opened this issue Feb 3, 2016 · 5 comments
Closed

Listen on unix socket in debugger #5059

3y3 opened this issue Feb 3, 2016 · 5 comments
Labels
feature request Issues that request new features to be added to Node.js.

Comments

@3y3
Copy link

3y3 commented Feb 3, 2016

Is there any limitation to not listen on unix sockets in debugger?
If you don't know any limitations then I can try to implement this feature.

@Fishrock123 Fishrock123 added question Issues that look for answers. debugger labels Feb 3, 2016
@mscdex mscdex added feature request Issues that request new features to be added to Node.js. and removed question Issues that look for answers. labels Feb 3, 2016
@3y3 3y3 changed the title [debugger][feature] listen on unix socket Listen on unix socket in debugger Feb 3, 2016
@bnoordhuis
Copy link
Member

There are no real technical obstacles but what is the use case? Let me rephrase: when is a TCP socket not good enough?

@3y3
Copy link
Author

3y3 commented Feb 5, 2016

For example:
We have remote server with development environment. Server used by some users in one time.
If we try to start debugger on port 5858, it can cause EADDRINUSE. So we need to find free port to debug our app.
Instead of this we can start debugger to listen on socket in our home dir and be sure what we can listen on it.

@bnoordhuis
Copy link
Member

I have a patch in the works (#5025) that makes --debug-port=0 bind to a random port, would that help? It's perhaps less convenient because you'll need to parse stderr or query process.debugPort. OTOH, you don't get stale socket errors like you do with UNIX sockets.

@3y3
Copy link
Author

3y3 commented Feb 5, 2016

--debug-port=0 sounds like a dream. Is this work correctly with child_process?

@bnoordhuis
Copy link
Member

Yes, it does.

@3y3 3y3 closed this as completed Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js.
Projects
None yet
Development

No branches or pull requests

4 participants