Nodejs development, what are the practical debugging skills, how to debug nodejs code?

  node.js, question

Recently, I studied nodejs, wrote a js file, and then ran to the window command line to run the js file. At present, the debugging skill is to write console.log (information to be printed) and then look at the command line, so I specially ask nodejs experts:
Nodejs development, what are the practical debugging skills, how to debug nodejs code?

npm install -g node-inspector
node-debug yourapp.js