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

Starting inspector on 127.0.0.1:9229 failed: address already in use #4190

Closed
andrewvmail opened this issue Sep 21, 2017 · 3 comments
Closed

Comments

@andrewvmail
Copy link

andrewvmail commented Sep 21, 2017

Sails version: 0.12.13
Node version: v8.2.1
NPM version: 5.2.0
DB adapter name: N/A
DB adapter version: N/A
Operating system: OSX 10.12.6


Hello, I am getting Starting inspector on 127.0.0.1:9229 failed: address already in use when using
this command node --inspect app.js

I can by pass that by doing node --inspect --inspect-port=0 mentioned in this ticket nodejs/node#9435
but by passing it this way ended up debugging the wrong process becuse i see stuff about grunt but not the main sails lift messages...

Does anyone have similar issue with debug command? the regular sails debug just crash with below output and then back to an active terminal.


info: Running app in debug mode...
info: You probably want to install / run node-inspector to help with debugging!
info: https://github.com/node-inspector/node-inspector

info: ( to exit, type <CTRL>+<C> )

(node:55030) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead.
@sailsbot
Copy link

@andrewvmail Thanks for posting, we'll take a look as soon as possible.


For help with questions about Sails, click here. If you’re interested in hiring @sailsbot and her minions in Austin, click here.

@sgress454
Copy link
Member

@andrewvmail This is patched by #4115. We'll get a new release of v0.12.x out soon; in the meantime you can apply that patch yourself pretty easily or else just turn Grunt off when you're running inspect:

sails_hooks__grunt=false node --inspect app.js

@andrewvmail
Copy link
Author

okay cool thanks!

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

No branches or pull requests

3 participants