0.0.4 • Published 7 years ago

hookdebug v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

hookdebug

A simple but useful tool, which hook the npm bin from #!/usr/bin/env node to #!/usr/bin/env node --inpect --debug-brk. Then the process could be started with support of attaching to the VS Code debugger.

Tested in macOS, maybe compatible with Linux, but not Windows.


Install

$ npm i -g hookdebug

Usage

  Usage: hkd <bin> [bin options]

Examples

Debug yarn:

$ hookd yarn

Debug roadhog build:

$ hookd roadhog build

Debug npm -h

$ hookd npm -h
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago