Debugging Node.js in Visual Studio Code
Visual Studio Code is fast turning into my default IDE for most of my web based development. It is very fast and snappy and just seems to do the right thing. I am architecting a new product and I wanted to write a prototype for processing some JSON and I decided to this all in Node.js. I was able to setup a fast coding and debugging environment by turning on Node Debug in Settings and then just running node --inspect-brk foo.js in Terminal. Make sure that you set a breakpoint before running.
Comments