node.js - Debugging in Loopback (Node) -


i'm running issues , question when debug in loopback (probably same node server/node inspector).

  1. 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?

    enter image description here

  2. 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

Popular posts from this blog

php - Autoloader issue not returning Class -

C++ Program To Find Smallest and Largest Number In Array -

java - How to put two numbers separated by a space into two different arrays -