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

sails debug fails with: "DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead." #4593

Closed
cirosantilli opened this issue Feb 20, 2019 · 2 comments

Comments

@cirosantilli
Copy link

cirosantilli commented Feb 20, 2019

Sails version: 1.1.0
Node version: v10.15.1
NPM version: 6.4.1
DB adapter name: N/A
DB adapter version: N/A
Operating system: Ubuntu 18.10


Create new web page app with: sail new sails.

Then try to run sails debug. Logs show:

 warn: The package.json in the current directory does not list Sails as a dependency...
 warn: Are you sure `/home/ciro/bak/git/nodejs-cheat` is a Sails app?
 warn: 

 info: Running app in debug mode...
 info: ( to exit, type <CTRL>+<C> )

(node:30100) [DEP0062] DeprecationWarning: `node --debug` and `node --debug-brk` are invalid. Please use `node --inspect` or `node --inspect-brk` instead. 

and then sails quits.

Ah wait, maybe it ends because I didn't launch node-inspector first, will try that. But now node-inspector install fails with:

../src/debug.cc:1:10: fatal error: v8-debug.h: No such file or directory

so I didn't manage to try it out straightaway. Maybe the same as this unresolved bug: node-inspector/v8-debug#26 which seems to say inspector is deprecated, use node --inspect instead.

Then I tried to start node with:

node --inspect app.js

and it does launch, but if I put a debugger statement

@sailsbot
Copy link

@cirosantilli 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.

@cirosantilli
Copy link
Author

Ah, there is sails inspect now, OK.

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

2 participants