Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I debug a Sails.js app with node-inspector?

In order to debug with node-inspector I need to start my app with the node --debug command. Up to this point I have only used sails lift to start my Sails.js app, so I am unsure of how to start my app using the normal node command.

like image 909
theblang Avatar asked Jan 25 '14 01:01

theblang


1 Answers

sails inspect since Sails v1.0

As of sails v1.0, sails debug is deprecated for newer Node.js, and you should instead use sails inspect.

This is documented at: https://sailsjs.com/documentation/reference/command-line-interface/sails-inspect and is presumably done to match the newer node --inspect interface.

like image 81
Jane Zhao Avatar answered Oct 22 '22 07:10

Jane Zhao