node.js - Debugging in Loopback (Node) -
i'm running issues , question when debug in loopback (probably same node server/node inspector).
for reason in node inspector (slc debug or node-debug) when try use console option or add watch expression, hitting return doesn't process command returns cursor next line. have bad version of node inspector?
in loopback able have access full application object when running in debug mode (which thing) , can use application object perform domain functions - e.g.
m.models.accounts.count(function(err,returncount) { console.log(returncount) }; );
above i'm getting count of number of accounts in database. i'd prefer not deal promises , write
m.models.accounts.count().
is there library or way this?
Comments
Post a Comment