Important: Please read the Qt Code of Conduct -

[Qt][Android]How can I step into and debug my custom library(*.so)

  • Hi All,

    I am using Qt5.1.1 for android on windows 7. I have made a simple Qt app that dynamically links to a Qt library. I have followed the steps listed in and I am able to bundle my custom library in an apk and deploy it to a device.

    I am attempting to debug my App after deploying. I am able to set breakpoints and debug only my main application. But I am not able to step into and debug the library functions when I call them from the App.

    I notice in my app's build environment LD_LIBRARY_PATH is set to /data/data/org.qtproject.example.Android1/lib.

    I would appreciate any help on this.

  • I have the same problem for dynamic libraries. I move them to static ones by adding CONFIG+=staticlib in *pro file, so debug become available. But this is very uncomfortable.

    Does anybody know a better solution for the libraries debugging on android?

  • I have managed to set breakpoints in shared libs by setting the
    solib-search-path ( open QtCreator -> Window/Views/Debugger log and enter set solib-search-path <path to the shared libs> ) and then set the breakpoints. This works, however when the application crashes I don't get any stack trace. If anyone knows how to do this, please let us know.

  • Does anyone has a solid instruction about how to do this?
    Two years have passed, Qt for Android is pretty popular now, I am sure someone figured it out.

    Thanks in advance!

Log in to reply