이 페이지에서

Qt 웹어셈블리 애플리케이션 디버그하기

Chrome으로 Qt WebAssembly 애플리케이션을 디버그하려면 다음과 같이 하세요:

  1. launch.json 파일을 엽니다. 자세한 내용은 Qt 애플리케이션 디버그를 참조하세요.
  2. 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가 정의되지 않았습니다 오류가 표시될 수 있습니다.

Qt 애플리케이션 디버그VS 코드도참조하십시오 : 디버깅을 참조하십시오.

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