1. 执行下面

node --inspect-brk 【文件路径】

2. 成功后在浏览器上输入

chrome://inspect/#devices

3. 点击 inspect 进入调试

相关文章: