How do I debug Node.js applications?

后端 未结 30 2136
暗喜
暗喜 2020-11-22 05:56

How do I debug a Node.js server application?

Right now I\'m mostly using alert debugging with print statements like this:

sys.puts(sys.inspe         


        
30条回答
  •  太阳男子
    2020-11-22 06:30

    Visual Studio Code will be my choice for debugging. No overhead of installing any tools or npm install stuff. Just set the starting point of your app in package.json and VSCode will automatically create a configuration file inside your solution. It's build on Electron, on which editors like Atom are built.

    VS Code gives similar debugging experience as you might have had in other IDEs like VS, Eclipse, etc.

提交回复
热议问题