sails debug

Attach the node debugger and lift the sails app; similar to running node --debug app.js. Takes the same options as sails lift. You can then use node-inspector to debug your app as it runs.

Example

  1. $ sails debug
  2. info: Running node-inspector on this app...
  3. info: If you don't know what to do next, type `help`
  4. info: Or check out the docs:
  5. info: http://nodejs.org/api/debugger.html
  6. info: ( to exit, type <CTRL>+<C> )
  7. debugger listening on port 5858

To use the standard (command-line) node debugger with sails, you can always just run node debug app.js.