debugging application with nodejs

There are two easy ways to debug application written in nodejs which are :-

a) Nodejs - ChromeDev Tools -

First you need to run node --inspect, assuming you are trying to debug index.js scripts.

node --inspect= index.js

next, you need to click on the "green" button.

If you do not see your scripts appearing, on your leftmost tab, you should see "FileSystem, Node". Select Node and then drill down until you see your scripts.

Place your break points as shown above

b) Visual Code - using this approach all you need to do is select "Debug" -> "Start Debugging"


Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

A quick tutorial for OWASP ZAP tool for beginners