I try to use node-inspector to debug my node apps. At first, I use
node-debug index.js
but the inspector wont stop at debugger
statement, also I am unable to set breakpoints.
But if I run
node-inspector
then run node with debug flags
node --debug index.js
the inspector works like a charm.
So what is the difference between these two? I try to read https://github.com/node-inspector/node-inspector/blob/master/bin/node-debug.js but frankly no understand :O
Thank you very much!
I use mac osx 10.10.2