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
}
]
}
有用的话,给我点个赞谢谢啦!
版权声明:本文标题:vscode中如何配置谷歌浏览器运行环境(launch)的内容 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1726982962a1093019.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论