Diligent Engine
 
Loading...
Searching...
No Matches
Debugging WebAssembly
  • Read WASM Debugging with Emscripten and VSCode
  • Install all the VS Code extensions described in the article above, and build the project as described in build instructions
  • Create tasks.json file in the .vscode folder if it does not exist and add the following content:
    {
    "version": "2.0.0",
    "tasks": [
    {
    "label": "StartServer",
    "type": "process",
    "command": "${input:startServer}"
    }
    ],
    "inputs": [
    {
    "id": "startServer",
    "type": "command",
    "command": "livePreview.runServerLoggingTask"
    }
    ]
    }
  • Add a target to the launch.json file for launching, for example:
    {
    "name": "Tutorial01_HelloTriangle_Emscripten",
    "type": "chrome",
    "request": "launch",
    "url": "http://localhost:3000/build/Emscripten/DiligentSamples/Tutorials/Tutorial01_HelloTriangle/Tutorial01_HelloTriangle.html",
    "preLaunchTask": "StartServer",
    }
  • Open VSCode and press F5 to launch the application.