In questa pagina

Eseguire il debug delle applicazioni Qt WebAssembly

Per eseguire il debug di un'applicazione Qt WebAssembly con Chrome:

  1. Aprire un file launch.json. Per ulteriori informazioni, consultare la sezione Debug delle applicazioni Qt.
  2. Selezionare “ Add Configuration ”, quindi selezionare la configurazione di debug “ Qt: Debug Qt WASM with Chrome ”.

L'attività " Qt: WASM Start " nella sezione " preLaunchTask " verifica le dipendenze richieste e, se necessario, richiede di installarle.

Debug di applicazioni multithread

Per le applicazioni Qt WebAssembly in modalità " multi-thread ", impostare la seguente configurazione nel file settings.json:

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

In caso contrario, potrebbe comparire l'errore " SharedArrayBuffer non definito ".

Vedi anche Debug delle applicazioni Qt e VS Code: Debug.

© 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.