我用Visual Studio Code编写了代码。当我尝试调试代码时,Chrome调试不允许连接本地主机。如何使用launch.json设置修复调试设置?
launch.json代码
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: 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}"
}
]
}
http://localhost-8080.com/拒绝与Chrome连接