How do I debug Node.js applications?

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

    If you need a powerful logging library for Node.js, Tracer https://github.com/baryon/tracer is a better choice.

    It outputs log messages with a timestamp, file name, method name, line number, path or call stack, support color console, and support database, file, stream transport easily. I am the author.

提交回复
热议问题