inspector-on-demand
Launch v8 inspector/devtools on demand for long-running apps
Last updated 2 years ago by danielkalen .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install inspector-on-demand 
SYNC missed versions from official npm registry.

inspector-on-demand

Code Climate NPM NPM

Launch v8 inspector/chrome-dev-tools on-demand for long-running apps. Requires node >= v8.0.0, otherwise dev

Demo

Demo 1 - Normal Activation Demo 1 - Normal Activation Demo 2 - Paused Execution Demo 2 - Paused Execution

Usage

Load the inspector-on-demand module at any point in your app using require('inspector-on-demand') and type any of the following commands in your terminal to launch the inspector:

  • CTRL+Y - activate inspector listener. This will not pause further script execution.
  • CTRL+U - activate inspector listener and pause further script execution until inspector is open.
  • CTRL+X - deactivate inspector listener. After this combo, the inspector cannot be re-enabled.

Then launch chrome and navigate to chrome://inspect and launch the newly added remote target. If you are having trouble launching the inspector you might want to consider using NiM Inspector Manager Chrome Extension.

License

MIT © Daniel Kalen

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 3
Last Month 3
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |