Unsolved How to debug a Qt application on an Android device
-
Is there a way to debug a Qt Application on an android device by setting breakpoints on QtCreator? This is such a bad constraint!
Following is my environment:
Qt version : 5.9.4
Running on MacOS High Sierra
Running app on a Google Pixel XL with Android 8.1.0 on itClicking and starting debug from QtCreator on the target android device show "Waiting for debugger" on android device gives the following error pops up on QtCreator
Connecting to remote server failed: Remote communication error.
Target disconnected.: Connection reset by peer.Thereafter dismissing the "Waiting for debugger" message on my android device but app is not able to launch anymore.
Following are the logs on QtCreator console
data/data/my.app.package.id/qt-reserved-files/plugins/qmltooling/libqmldbg_server.so"
has unsupported flags DT_FLAGS_1=0x81 W linker :
"/data/data/my.app.package.id/qt-reserved-files/plugins/qmltooling/libqmldbg_debugger.so"
has unsupported flags DT_FLAGS_1=0x81 W linker :
"/data/data/my.app.package.id/qt-reserved-files/plugins/qmltooling/libqmldbg_inspector.so"
has unsupported flags DT_FLAGS_1=0x81 W linker :
"/data/data/my.app.package.id/qt-reserved-files/plugins/qmltooling/libqmldbg_messages.so"
has unsupported flags DT_FLAGS_1=0x81 W linker :
"/data/data/my.app.package.id/qt-reserved-files/plugins/qmltooling/libqmldbg_tcp.so"
has unsupported flags DT_FLAGS_1=0x81 D MyApp: (null):0 ((null)): QML
Debugger: Waiting for connection on port 58911...How can I set up debugger for android in QtCreator?