User Tools

Site Tools


njsetn:debugging_with_npm

→ npmjs.com/package/node-inspector

sudo npm install -g node-inspector
// package.json
{
(...)
  "scripts": {
    "predebug": "grunt",
    "debug": "open http://localhost:3000 & open http://localhost:8080/debug?port=5858",
    "postdebug": "node-inspector & node --debug app", // on lance le debugger de node + l'app en mode debug (connectée au debugger).
npm run debug
njsetn/debugging_with_npm.txt · Last modified: 2016/03/29 00:06 by leo