Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to debug a Qt application on an Android device
Forum Updated to NodeBB v4.3 + New Features

How to debug a Qt application on an Android device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 406 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nelson_Piquet
    wrote on last edited by
    #1

    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 it

    Clicking 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?

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved