이 페이지에서

Qt WebAssembly 애플리케이션 디버깅

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가 정의되지 않았습니다(SharedArrayBuffer is not defined )'라는 오류가 발생할 수 있습니다.

'Qt 애플리케이션 디버깅 ' 및 'VS Code: 디버깅'항목도 참조하십시오 .

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