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

Unable to debug Android app when using a SUBDIR project

    XMLWordPrintable

Details

    • Android

    Description

      When running a Qt Android app that is part of a SUBDIR project, it is not possible to debug the application.

      When Qt Creator downloads the app_process, linker and libc.so files via adb from the device, it places them into the parent SUBDIR build folder. However these files need to be placed in the application build sub directory in order for gdb to find them.

      Attached is a sample project that demonstrates the issue. To run:

      1. Unzip and configure project for android. (Testing using Qt 5.12.4)
      2. Set a break point somewhere in main.cpp.
      3. Build and debug the app on a device.

      The app will run, but the debugger will not stop at the set breakpoint.

      If you browse to the build dir for the SUBDIR project you will see the above mentioned files are in the top level build dir.

      If you copy these three files into QtBrokenDebuggingApp sub build dir and debug the app again. The debugger works as expected.

       

      Attachments

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

        Activity

          People

            assam Assam Boudjelthia
            rupert_d Rupert Daniel
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes