NodeJS 以 debug 方式启动

83 阅读1分钟

debug 方式启动,方便调试。

在控制台:

node --inspect ./src/app.js

在浏览器:

chrome://inspect

参考:

nodejs.org/en/docs/gui…