for debugging using node-inspector
install node-inspector
run the following command
-> node-inspector &
next run the following command to debug the file
-> node --debug-brk 5-debug_demoopen a browser andtype http://localhost:8080
this opens a debugging window