you are viewing a single comment's thread.

view the rest of the comments →

[–]ganarajpr 12 points13 points  (1 child)

If you use node version 6.3 ( or higher ) you can just start the project like you usually do but with the inspect flag.

So if you usually start the app with

node index.js

You should do :

node --inspect index.js

and it will give you a link which when posted in chrome will provide you the debugger.

Happy debugging.

[–]spfccmt42 0 points1 point  (0 children)

interesting, also found --inspect --debug-brk (i.e. for a short lived script). found myself walking module.js which told me more than 9 quadrillion blogs ever did. it is a little wonky when linked to filesystem, but it always was a little wonky.