0 votes
132 views
in Node.js by (4.4k points)

How to debug an application in Node.js ?

1 Answer

0 votes
by (4.4k points)

There are following way to debut node.js application:-

  1. node-inspector:-
    Install:- npm install -g node-inspector
    Run:- node-debug app.js
  2. Debugging:-
    • Debugger
    • Node Inspector
    • Visual Studio Code
    • Cloud9
    • Brackets
  3. Profiling:-
    node --prof ./app.js
    node --prof-process ./the-generated-log-file
  4. Heapdumps:- node-heapdump with Chrome Developer Tools
  5. Tracing:- Interactive Stack Traces with TraceGL
  6. Logging:- Libraries that output debugging information
    • Caterpillar
    • racer
    • scribbles
  7. Libraries that enhance stack trace information
    • Longjohn

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...