【发布时间】:2016-12-08 21:33:43
【问题描述】:
我目前正在尝试在 google chrome 浏览器中打开一个用 Visual Studio 编写的 html 文件,并在 Visual Studio 中运行 Google Chromes 调试扩展
以下是.json文件,我使用的是第一个配置
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:8080",
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
},
{
"name": "Attach to Chrome, with sourcemaps",
"type": "chrome",
"request": "attach",
"port": 9222,
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
}
]
但是当它在谷歌浏览器中打开时我收到错误
无法访问此站点
localhost 拒绝连接。
【问题讨论】:
-
chrome 是否以
chrome.exe --remote-debugging-port=9222开头?
标签: visual-studio google-chrome-extension