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

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -