共计 400 个字符,预计需要花费 1 分钟才能阅读完成。
问题
vscode 应用 chrome 调试报错 ” 无法访问您的文件 ” 或者 ”localhost 回绝了咱们的连贯申请 ”。
解决
ctrl+p 搜寻 launch.json 文件
改为:
{
"version": "0.2.0",
"configurations": [
{
"name": "应用本机 Chrome 调试",
"type": "chrome",
"request": "launch",
"file": "${file}",
// "runtimeExecutable": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", // 改成您的 Chrome 装置门路
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"userDataDir":"${tmpdir}",
"port":9222
}
]
}
vscode 应用 chrome 调试报错
正文完