Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.47 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.47 KB

late-inspect

Start the debugger listener on an already running Node.js process.

NPM Version NPM Downloads

Installation

Can be installed globally:

$ npm install -g late-inspect

Or as a local tool on the project directory:

$ npm install --save late-inspect

Usage

When installed globally:

$ inspect [process id]

When installed locally from the project directory:

$ ./node_modules/.bin/inspect [process id]

Will signal a running Node.js process with that id to start the debugger listener. Same effect as running with the --inspect flag without the need to restart the process.

Works on Windows, Mac and Unix systems.

Obtaining Process ID

To get a list of running Node.js process ids:

$ inspect --list

Will return a list of all running Node.js processes with their process id, command and arguments list.

For more available options run with -h or --help

License

MIT

Buy Me A Coffee