基于vscode:
1:点击创建一个launch.json,选择Node.js
![](https://img.haomeiwen.com/i3700891/44d49d4276d44c0d.png)
2:修改program中index.js为你想要调试的文件
![](https://img.haomeiwen.com/i3700891/464de7df47b21672.png)
3:点击launch Program即可启动调试
![](https://img.haomeiwen.com/i3700891/364dcee53de890ad.png)
基于webstrom:
1:点击Edit Configurations
![](https://img.haomeiwen.com/i3700891/f92d2bd94745fe4f.png)
2:点击+,选择nodejs
![](https://img.haomeiwen.com/i3700891/9474b274af7f505f.png)
3:配置要执行的文件及命令
![](https://img.haomeiwen.com/i3700891/6b9bcbea66d107e0.png)
4:点击调试图标,即会执行node index.js --help,并启动调试
![](https://img.haomeiwen.com/i3700891/7d163c3bf238e6f8.png)
![](https://img.haomeiwen.com/i3700891/c861be39461f9f98.png)
基于vscode:
1:点击创建一个launch.json,选择Node.js
2:修改program中index.js为你想要调试的文件
3:点击launch Program即可启动调试
基于webstrom:
1:点击Edit Configurations
2:点击+,选择nodejs
3:配置要执行的文件及命令
4:点击调试图标,即会执行node index.js --help,并启动调试
本文标题:node项目调试配置
本文链接:https://www.haomeiwen.com/subject/gdlchrtx.html
网友评论