#debugging node apps
##how to debug node apps w/ node inspector
Watch Expression
in inspector -- will keep track of the val of somethingCall Stack
then right-click oncallbacks
you 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-s
will stop at first line of code)
- breakpoints
- add
debugger;
into source code - set breakpoints in inspector
- add