基于vscode:
1:點擊創(chuàng)建一個launch.json,選擇Node.js

2:修改program中index.js為你想要調試的文件

3:點擊launch Program即可啟動調試

基于webstrom:
1:點擊Edit Configurations

2:點擊+,選擇nodejs

3:配置要執(zhí)行的文件及命令

4:點擊調試圖標,即會執(zhí)行node index.js --help,并啟動調試


基于vscode:
1:點擊創(chuàng)建一個launch.json,選擇Node.js
2:修改program中index.js為你想要調試的文件
3:點擊launch Program即可啟動調試
基于webstrom:
1:點擊Edit Configurations
2:點擊+,選擇nodejs
3:配置要執(zhí)行的文件及命令
4:點擊調試圖標,即會執(zhí)行node index.js --help,并啟動調試