vscode debug for chrome

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

阅读 2.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题