Wednesday, 1 June 2016
Debug on command line:
Debug on chrome with nice source code and break points support:
after you run "node-debug app.js"
It will open a new chrome window for you and stop the app at the first line of your code.
Then you need let the code run from the broken point.
This is a perfect tool to debug, expect i always get this error:
ReferenceError: frame_index is not defined
When you finished your debug, you should close the new chrome window totally, if you use mac, make sure you use "cmd+q" to kill the window. otherwize you next debug will not able to open the debug window for you.
devtool got a very rubbish ui for sourcecode: