View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page

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

$ sails debug

info: Running node-inspector on this app...
info: If you don't know what to do next, type `help`
info: Or check out the docs:
info: http://nodejs.org/api/debugger.html

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

debugger listening on port 5858

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

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.

Reference

We wrote a book!

Get early access to the book
with promotion code: mcneildoc

Get the Book