안드로이드 기기에서 디버그하기

LLDB를 사용하여 Qt 5.15.9 이상 및 Qt 6.2 이상으로 개발하는 안드로이드 기기에서 애플리케이션을 디버깅할 수 있습니다.

최근 릴리스( Qt Creator )에는 Android에서 LLDB를 사용하는 네이티브(C++) 디버깅에 문제가 있습니다.

이 문제는 Qt Creator 17.0.1에서 수정되었습니다. 이전 릴리스에서 이 문제를 해결하려면 환경설정 > Debugger > GDB 으로 이동하여 Additional Attach Commands 에 다음을 추가하세요.

settings set plugin.jit-loader.gdb.enable off

디버거 환경 설정의 GDB 탭

Android 기기마다 다른 방식으로 디버깅을 활성화할 수 있습니다. Developer Options 에서 USB Debugging 을 찾습니다. Settings > About 에서 Build number 을 여러 번 탭하여 Developer Options 을 표시합니다.

디버그 빌드 구성을 선택하여 디버깅용 애플리케이션을 빌드합니다.

참고: Android Studio가 실행 중인 경우Qt Creator 에서 Android 기기에서 애플리케이션을 디버깅할 수 없습니다. 애플리케이션 출력에 다음 메시지가 나타나면 Android Studio를 닫고 다시 시도하세요:

Ignoring second debugger -accepting and dropping.

방법: Android용 개발, Android용 개발장치 내 개발자 옵션 구성을참조하십시오 .

Copyright © The Qt Company Ltd. and other contributors. 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.