1# `node-inspect` 2 3```bash 4npm install --global node-inspect 5``` 6 7For the old V8 debugger protocol, 8node has two options: 9 101. `node --debug <file>`: Start `file` with remote debugging enabled. 112. `node debug <file>`: Start an interactive CLI debugger for `<file>`. 12 13But for the Chrome inspector protocol, 14there's only one: `node --inspect <file>`. 15 16This project tries to provide the missing second option 17by re-implementing `node debug` against the new protocol. 18 19``` 20Usage: node-inspect script.js 21 node-inspect <host>:<port> 22``` 23 24#### References 25 26* [Debugger Documentation](https://nodejs.org/api/debugger.html) 27* [EPS: `node inspect` CLI debugger](https://github.com/nodejs/node-eps/pull/42) 28* [Debugger Protocol Viewer](https://chromedevtools.github.io/debugger-protocol-viewer/) 29* [Command Line API](https://developers.google.com/web/tools/chrome-devtools/debug/command-line/command-line-reference?hl=en) 30