Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-31277

Android Device is "Waiting For Debugger"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 13.0.2
    • Debugger
    • None
    • Win 10 laptop, Qt Creator 13.0.2, deploying to a Nokia 8 (TA-1012) with Android 9, several Qt versions, NDK 26.1.10909125 as default with JDK17
    • Android, Windows

    Description

      When starting an actual debug run (e.g. with F5, not just debug cofiguration run with Ctrl-R) on my Android device (Nokia 8, TA-1012 with Android 9), apps open a notification that says: "Waiting for debugger - Application testLogCompat (process org.qtproject.example.testLogCompat is waiting for the debugger to attach" with the only option to "Force close". 

      It stays that way until I click the button.

      Meanwhile my Application Output pane shows:

      killall: lldb-server: No such process01:28:49: Debugging  "-qmljsdebugger=port:51710,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector,DebugTranslation" ...
      CONNECT: success adb://NB1GAS5781601160:5039 platform: remote-android True01:30:34: Debugging of  "-qmljsdebugger=port:51710,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector,DebugTranslation" has finished.
       

      After force-closing I only get:

      01:30:35: "org.qtproject.example.testLogCompat" died. 

      NB that no qDebug()<<"output"; appears, although there should be something.The problem occurs in new projects and across different Qt Versions. It does, although, not appear on a different Android device (Samsung Tablet SM-T830 with Android 10). Both devices have worked before at a desktop computer at home (older QtCreator Version).

      I have tried:

      • toggling DeveloperOptions|Debugging-App between none and my app
      • toggling GPU-Debugging
      • deleting USB authorisations and granting them again
      • removing DeveloperOptions altogether and bring them back on
      • adb shell am clear-debug-app
      • uninstalling app before deploying again
      • removing build folders

      I have no idea why it works on one device and not on the other, while both worked fine at home. Might it be a device info cache problem in QtCreator? Is there a way to reset that? Any other ideas?

      Attachments

        1. Debugger.png
          Debugger.png
          96 kB
        2. GlobalDebuggerRightAfterQuit.txt
          139 kB
        3. GlobalDebuggerRightBeforeQuit.txt
          99 kB
        4. sdkndk.png
          sdkndk.png
          32 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              cadam Cristian Adam
              sedi Sebastian Diel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes