当前位置:   article > 正文

VsCode——chrome调试launch.json配置文件_launch.json设置谷歌浏览器

launch.json设置谷歌浏览器
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:8080",
            "webRoot": "${workspaceFolder}"
        },
        {
            "type": "chrome",
            "request": "attach",
            "name": "Attach to Chrome",
            "port": 9222,
            "webRoot": "${workspaceRoot}"
          },
        {
            "name": "使用本机chrome调试",
            "type": "chrome",
            "request": "launch",
            "runtimeExecutable": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",//这里填自己的chrome.exe所在目录
            "sourceMaps": true,
            //"url":"http...",//在使用外部服务器时,注释掉file,改用 url, 并将 useBuildInServer 设置为 false
            "file": "${workspaceRoot}/test.html", //#每次需要修改这里的文件地址
            "webRoot": "${workspaceRoot}",
            "userDataDir": "${workspaceRoot}/.vscode/chrome",
        }
    ]
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/461216
推荐阅读
相关标签
  

闽ICP备14008679号