1 回答

TA貢獻(xiàn)1829條經(jīng)驗 獲得超9個贊
{
"name": "谷歌瀏覽器", //運行html文件,用谷歌瀏覽器打開
"type": "chrome",
"request": "launch",
"url": "${file}",
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
},
{
"name": "nodeLauch", //單獨調(diào)試js,即可以直接運行js
"type": "node",
"request": "launch",
"program": "${file}", //這個配置成你要調(diào)試的文件、${file}當(dāng)前打開的文件
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"console": "internalConsole",
"preLaunchTask": "",
"sourceMaps": false,
"outDir": null
}
添加回答
舉報