vscode-使用断点


在vscode中使用断点技术

第一步:安装插件 Debugger for Chrome Extension
第二步:然后需要配置 VSCode 来连接到 Chrome
image
第三步:第二步过后会生成一个 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",
            // "skipFiles": [
            //     "<node_internals>/**"
            // ],
            // "program": "${file}",
            "url": "http://localhost:3000",
            "webRoot": "${workspaceRoot}"
        }
    ]
}

第四步:按F5 开始断点调式。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM