Qt Creator 4.9.1
Android Qt 5.12.4
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:
- Unzip and configure project for android. (Testing using Qt 5.12.4)
- Set a break point somewhere in main.cpp.
- 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.