Skip to content

billyzkid/nodebug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodebug

This is a node command line utility that simplifies the process of debugging node scripts using node-inspector.

Installation

npm install -g nodebug

Usage

To debug a typical script:

nodebug script.js

To debug unit tests (e.g. using nodeunit):

nodebug node_modules/nodeunit/bin/nodeunit tests.js

Need to pass options to your script?

nodebug script.js -- -v -t --include who

Optimist, which powers nodebug's options, allows for any arguments after the -- to remain untouched.

What it does

  1. Executes the specified script with the node debugger attached (i.e. --debug-brk)
  2. Starts node-inspector
  3. Launches the debugging interface (i.e. Chrome)

About

Command-line utility that simplifies node debugging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published