launch.json
的配置如下
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "LaunchChrome",
"url": "http://localhost:8088",
"webRoot": "${workspaceRoot}"
}
]
}
项目目录如下
|-demo
|-.vscode
|-launch.json
|-test.js
在 test.js
中打了断点,点击启动调试按钮,弹出了 chrome
,但是一直访问不了 http://localhost:8088/test.js
。