共计 670 个字符,预计需要花费 2 分钟才能阅读完成。
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
“version”: “0.2.0”,
“configurations”: [
{
“type”: “chrome”,
“request”: “launch”,
“name”: “Launch Chrome against localhost”,
“url”: “${file}”,
“sourceMaps”: true,
“webRoot”: “${workspaceRoot}”
},
{
“name”: “nodeLauch”, // 单独调试 js,即可以直接运行 js
“type”: “node”,
“request”: “launch”,
“program”: “${file}”, // 这个配置成你要调试的文件、${file} 当前打开的文件
“stopOnEntry”: false,
“args”: [],
“cwd”: “${workspaceRoot}”,
“runtimeExecutable”: null,
“runtimeArgs”: [
“–nolazy”
],
“env”: {
“NODE_ENV”: “development”
},
“console”: “internalConsole”,
“preLaunchTask”: “”,
“sourceMaps”: false
}
]
}