Android デバイスでのデバッグ

Qt 5.15.9 以降および Qt 6.2 以降で開発した Android デバイス上のアプリケーションは、LLDB を使用してデバッグできます。

Qt Creator の最近のリリースでは、Android 上で LLDB を使用したネイティブ (C++) デバッグに問題があります。

これはQt Creator 17.0.1 で修正されました。それ以前のリリースでこれを修正するには、Preferences>Debugger >GDB に進み、Additional Attach Commands に以下を追加してください。

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

デバッガ環境設定のGDBタブ

Androidデバイスによって、デバッグを有効にする方法が異なります。Developer Options の下にあるUSB Debugging を探してください。Settings >AboutBuild number を数回タップし、Developer Options を表示します。

デバッグ用にアプリケーションをビルドするには、デバッグ・ビルド設定を選択します。

注: Android Studio が実行されている場合、Qt Creator は Android デバイス上のアプリケーションをデバッグできません。Application Outputに以下のメッセージが表示された場合は、Android Studioを終了してやり直してください:

Ignoring second debugger -accepting and dropping.

How To: Develop for Android」、「Developing for Android」、「Configure on-device developer options」も参照してください

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.