vscode开始调试步骤(本人实践过)

1.安装 Debugger for Chrome
 
2.配置launch.json参数
{
    // 使用 IntelliSense 了解相关属性。
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: 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}"
        }
    ]
}
3.安装live-server
npm install -g live-server  //该命令为全局安装
4.命令行运行:  live-server

猜你喜欢

转载自blog.csdn.net/qq_42288851/article/details/106815118
今日推荐