nodejs-mozilla/deps/node-inspect
Lu zhiping 557f7faa75 Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
..
examples Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
lib Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
test/cli Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
tools/eslint-rules Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
.editorconfig Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
.eslintrc Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
.gitignore Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
.npmrc Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
.travis.yml Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
CHANGELOG.md Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
CONTRIBUTING.md Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
GOVERNANCE.md Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
LICENSE Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
README.md Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
appveyor.yml Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
cli.js Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00
package.json Import Upstream version 12.18.1 2022-07-18 11:52:00 +08:00

README.md

node-inspect

npm install --global node-inspect

For the old V8 debugger protocol, node has two options:

  1. node --debug <file>: Start file with remote debugging enabled.
  2. node debug <file>: Start an interactive CLI debugger for <file>.

But for the Chrome inspector protocol, there's only one: node --inspect <file>.

This project tries to provide the missing second option by re-implementing node debug against the new protocol.

Usage: node-inspect script.js
       node-inspect <host>:<port>

References