How do I debug Node.js applications?

后端 未结 30 2532
暗喜
暗喜 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:32

    I wrote a different approach to debug Node.js code which is stable and is extremely simple. It is available at https://github.com/s-a/iron-node.

    Enter image description here

    An opensource cross-platform visual debugger.

    Installation:

    npm install iron-node -g;

    Debug:

    iron-node yourscript.js;

提交回复
热议问题