Hit C++ breakpoints on Android
-
Hi, I'm working with Qt 5.15.2 and QT Creator 5.0.3.
I don't know why in one of my projects the Qt Creator doens't hit the C++ breakpoints when I debug on Android.
Instead it works in QML source code.
It works on Windows.
If I pause the execution I don't see any C++ debug symbols.
I have another project and in this case Qt Creator hits the breakpoints. The settings are the sameThis is the initial output of the working project
This is the initial output of the not working project
In the working project I see ""Could not load shared....", in the not working project I don't see it
Please help me
-
Can you check and post output of debugger log window and also if this is somehow related to this topic: https://forum.qt.io/topic/131822/c-debugger-refuse-to-work-while-qml-does-its-job
-
I found the solution of my problem.
If I set DESTDIR = debug in the pro file, the Qt Creator doesn't hit the breakpoints.
I have to set it for the library projects but not for the app project.The strange thing is that I worked until the last release of Qt Creator with this setting.
So I think it is a change of the last release. -
ok;... so in the recent version of QT Creator.. breakpoints do not hit over here as well.. could someone please suggest how to cope THIS TIME with this utterly broken piece of software? We do not have DESTDIR set.
after hours of playing with it, it turned out that with this very build of QT Creator, is it due to one of its underlying sub-systems such as CMake, Qmake, Debugger, Android NDK, package downloading sub-system (what was its name?Maven?) or whatever.. nobody ever knows...
(..) this time I had to specifically set in Android's Dev settings to make it explicitly wait for a Debugger to attach to a specific app.
so in case you feel like updating QT Creator to latest build in this branch.. Be Prepared.
(..) to save remainders of sanity, won't upgrade to recent branch of QT library itself, in foreseeable future lol.