Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

node-custom-debug

You have no need to fix your daemon's init scripts to enable debugging and profiling on the fly.

It's good to use with node-inspector to inspect many instances on the single server.

Installation

npm install -g custom-debug

Usage

See test.js:

vardebug=require("./custom-debug");varprofiler=require("v8-profiler");varport=5858;console.log("Starting first time : "+debug.start(port));console.log("Starting second time : "+debug.start(port));setInterval(function(){console.log("Another iteration..");},1000);

To try that out:

  1. Run node test.js
  2. Run node-inspector
  3. Open your browser with the next link: http://localhost:8080/debug?port=58585

Authors

About

Launch debugger on your favorite port from your javascript code!

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors