VS Code断点调式Cesium

1.在VS Code中安装Debugger for Firefox插件

VS Code断点调式Cesium_第1张图片2.下载安Firefox Developer Edition

VS Code断点调式Cesium_第2张图片

3. 创建launch.json

VS Code断点调式Cesium_第3张图片

编辑并保存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": [
        {
            "name": "Launch MyDraw.html",
            "type": "firefox",
            "request": "launch",
            "reAttach": true,
            "file": "${workspaceFolder}/MyDraw.html"
        }
    ]
}

4.开始调试

VS Code断点调式Cesium_第4张图片

5.设置断点开始调试,html中的javasript的代码也可以调试

VS Code断点调式Cesium_第5张图片

你可能感兴趣的:(CesiumJS,VS,Code,Cesium,调试,断点)