Qt WebAssemblyアプリケーションのデバッグ
Chrome で Qt WebAssembly アプリケーションをデバッグするには、以下の手順を実行します:
- launch.jsonファイルを開きます。詳細については、「Qt アプリケーションのデバッグ」を参照してください。
- Add Configuration を選択し、Qt: Debug Qt WASM with Chrome デバッグ設定を選択します。
preLaunchTask セクションのQt: WASM Start タスクが必要な依存関係をチェックし、必要に応じてインストールするように指示します。
マルチスレッド・アプリケーションのデバッグ
multi-thread Qt WebAssembly アプリケーションでは、settings.json で以下の設定を行います:
"livePreview.httpHeaders": {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",
"Accept-Ranges": "bytes"
}そうしないと、SharedArrayBuffer is not definedというエラーが表示されることがあります。
Qt アプリケーションのデバッグと VS Codeも参照してください: デバッグ」も参照してください。
© 2024 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.