title: How to use node-inspector with sails.js?
body: <p>I would like to debug my sails.js application but I don't know how to launch <code>node-inspector</code> for this occasion. </p>
  
  <p>Normally it would go : </p>
  
  <pre><code>$ node --debug myapp.js
  </code></pre>
  
  <p>If I run my sails application normally : </p>
  
  <pre><code>$ sails lift --prod
  </code></pre>
  
  <p>and then launch <code>node-inspector</code> </p>
  
  <pre><code>$ node-inspector --debug-port 1337
  Node Inspector v0.7.0-2
     info  - socket.io started
  Visit http://127.0.0.1:8080/debug?port=1337 to start debugging.
  </code></pre>
  
  <p>I get this error in inspector GUI : </p>
  
  <pre><code>Error: read ECONNRESET. Check there is no other debugger client attached to port 1337.
  </code></pre>