Skip to content

Start debugger listener on a running Node.js process

Notifications You must be signed in to change notification settings

gonenduk/late-inspect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Start debugger listener on a running Node.js process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published