--inspect[=[host:]port]
新增于: v6.3.0
在 host:port 上激活检查器。默认为 127.0.0.1:9229。
\Activate inspector on host:port. Default is 127.0.0.1:9229.
V8 检查器集成允许 Chrome 开发者工具和 IDE 等工具调试和分析 Node.js 实例。这些工具通过 tcp 端口连接到 Node.js 实例,并使用 Chrome DevTools 协议 进行通信。
\V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug and profile Node.js instances. The tools attach to Node.js instances via a tcp port and communicate using the Chrome DevTools Protocol.