Depurar aplicativos Qt WebAssembly
Para depurar um aplicativo Qt WebAssembly com o Chrome:
- Abra um arquivo launch.json. Para mais informações, consulte Depurar aplicativos Qt.
- Selecione “ Add Configuration ” e, em seguida, selecione a configuração de depuração “ Qt: Debug Qt WASM with Chrome ”.
A tarefa “ Qt: WASM Start ” na seção “ preLaunchTask ” verifica as dependências necessárias e solicita que você as instale, se necessário.
Depuração de aplicativos multithread
Para aplicativos Qt WebAssembly do multi-thread, defina a seguinte configuração no arquivo settings.json:
"livePreview.httpHeaders": {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",
"Accept-Ranges": "bytes"
}Caso contrário, você poderá receber a mensagem de erro “SharedArrayBuffer não está definido ”.
Veja também Depuração deaplicativos Qt e VS Code: Depuração.
© 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.