vsconde launch.json配置 调试本地文件

{
    // 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": [
        {
            "name": "使用本机 Chrome 调试",
            "type": "chrome",
            "request": "launch",
            "file": "${workspaceRoot}/${fileBasename}?debug=1",
            // "runtimeExecutable": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
            // "runtimeArgs": ["--allow-file-access-from-files","--autoplay-policy=0"],
            "sourceMaps": false,
            "webRoot": "${workspaceRoot}",
            "userDataDir":"${tmpdir}",
            "port":5433
        }
    ]
}

 

posted @ 2021-12-28 15:09  嘉琦  阅读(99)  评论(0)    收藏  举报