#debugging node apps
##how to debug node apps w/ node inspector
Watch Expressionin inspector -- will keep track of the val of somethingCall Stackthen right-click oncallbacksyou canRestart Frame- can edit vars in
Scope Variables - can live edit source code in debugger
- an asterisk will appear above file name, command s will save that code
- debugging mocha unit tests
node-debug -s ./node_modles/.bin/_mocha(the-swill stop at first line of code)
- breakpoints
- add
debugger;into source code - set breakpoints in inspector
- add