En esta página

Depurar aplicaciones Qt WebAssembly

Para depurar una aplicación Qt WebAssembly con Chrome:

  1. Abre un archivo launch.json. Para obtener más información, consulta Depurar aplicaciones Qt.
  2. Selecciona « Add Configuration » y, a continuación, selecciona la configuración de depuración « Qt: Debug Qt WASM with Chrome ».

La tarea « Qt: WASM Start » de la sección « preLaunchTask » comprueba las dependencias necesarias y te solicita que las instales si es necesario.

Depuración de aplicaciones multihilo

Para las aplicaciones Qt WebAssembly de « multi-thread », configura lo siguiente en settings.json:

"livePreview.httpHeaders": {
    "Cross-Origin-Embedder-Policy": "require-corp",
    "Cross-Origin-Opener-Policy": "same-origin",
    "Accept-Ranges": "bytes"
}

De lo contrario, es posible que aparezca el error «SharedArrayBuffer no está definido ».

Véase también Depuración deaplicaciones Qt y VS Code: Depuración.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.