visual studio code 中 debugger for chrome 插件的配置

安装 debugger for chrome 插件后,把默认的 launch.json 改成:

{
    "name": "谷歌浏览器", 
    "type": "chrome", 
    "request": "launch", 
    "url": "${file}", 
    "sourceMaps": true, 
    "webRoot": "${workspaceRoot}"
},
{
    "name": "nodeLauch", 
    "type": "node", 
    "request": "launch", 
    "program": "${file}", 
    "stopOnEntry": false, 
    "args": [ ], 
    "cwd": "${workspaceRoot}", 
    "runtimeExecutable": null, 
    "runtimeArgs": [
        "--nolazy"
    ], 
    "env": {
        "NODE_ENV": "development"
    }, 
    "console": "internalConsole", 
    "preLaunchTask": "", 
    "sourceMaps": false, 
    "outDir": null
}

 

posted @ 2019-01-13 18:42  Mouer404  阅读(307)  评论(0编辑  收藏  举报