title: Debugging in Loopback (Node)
body: <p>I'm running into an issues and a question when I debug in loopback (probably the same for any node server/Node Inspector).</p>
  
  <ol>
  <li><p>For some reason in Node Inspector (slc debug or node-debug) when I try
  to use the console option or add a watch expression, hitting return
  doesn't process the command it just returns the cursor to the next
  line.  Do I have some bad version of Node Inspector?</p>
  
  <p><a href="https://i.stack.imgur.com/1wM2r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1wM2r.png" alt="enter image description here"></a> </p></li>
  <li><p>In loopback I am able to have access to my full application object when running in debug mode (which is a good thing) and I can use that application object to perform domain functions - e.g. </p>
  
  <p>m.models.accounts.count(function(err,returnCount) 
    { 
       console.log(returnCount) 
    }; 
  );</p>
  
  <p>Above I'm just getting a count of the number of accounts in the database.  I'd prefer not to deal with promises and simply write something like </p>
  
  <p>m.models.accounts.count(). </p>
  
  <p>Is there is library or a way to do this? </p></li>
  </ol>