admin管理员组

文章数量:1538721

对于开始学习使用vscode的同学没有意外都会遇见这个问题,比如我就是。

具体问题可以去查询,我也不是很清楚

哈哈嗨  

直接进入正题,代码在下面了

 

{
    "version":"0.2.0",
    "configurations": [
        {
            "name": "Launch Chrome",
            "request": "launch",
            "type": "chrome",
            "url": "http://localhost:8080",
            "webRoot": "${workspaceFolder}"
        },
        {
        "name": "Attach to Chrome",
        "port": 9222,
        "request": "attach",
        "type": "chrome",
        "webRoot": "${workspaceFolder}"
        },
        ,
        {
            "name": "使用本机 Chrome 调试",
            "type": "chrome",
            "request": "launch",
            "file": "${fileDirname}\\${fileBasename}",//文件地址
        //  "url": "http://mysite/index.html", //使用外部服务器时,请注释掉 file, 改用 url, 并将 useBuildInServer 设置为 false "http://mysite/index.html
            "runtimeExecutable": "C:\\Users\\123456\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", // 改成您的 Chrome 安装路径
            "sourceMaps": true,
            "webRoot": "${workspaceRoot}",
        //  "preLaunchTask":"build",
            "userDataDir":"${tmpdir}",
            "port":5433
        }
    ]
}

有用的话,给我点个赞谢谢啦!

本文标签: 运行环境浏览器内容VSCodelaunch