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. QtCreator: Can't find C++ debugger

QtCreator: Can't find C++ debugger

Scheduled Pinned Locked Moved Solved Mobile and Embedded
18 Posts 6 Posters 5.5k 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.
  • ad1170A Offline
    ad1170A Offline
    ad1170
    wrote on last edited by
    #1

    Hi,
    since a few days i can't debug an anroid app with QtCreator (Env: Win7/64, QtCretor 4.6.1, Qt5.10.1, NDK r16b, build SDK 27) . The GUI is written using QML and the bussiness logic is written in c++. The application output show only "Can't find C++ debugger." and the app die. The debugger setup seems to be ok. I can start debugging without C++ (only QML) debugger. I can still debug windows application.
    Whats going wrong?

    1 Reply Last reply
    0
    • ad1170A Offline
      ad1170A Offline
      ad1170
      wrote on last edited by ad1170
      #9

      Meanwhile i have found the problem. The QtCreator 4.6.1 does not work with android debugging (at least for me).
      The issue is the same on Linux. I have installed the QtCreator 4.6.0-rc1 and the android debugging is now possible again. I'm wondering that no one has this issue. The QtCreator 4.6.1 is already released for a few days.

      1 Reply Last reply
      2
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Based on your setup, the one thing I can see is that you are not using the recommended NDK which is r10e (see the Android Getting Started guide).

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        ad1170A 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          Based on your setup, the one thing I can see is that you are not using the recommended NDK which is r10e (see the Android Getting Started guide).

          ad1170A Offline
          ad1170A Offline
          ad1170
          wrote on last edited by
          #3

          @SGaist Thank you for reply. Yes, you are right but this was not a problem. I'm using the NDK r16b since at least 4 or 6 weeks and the debugging has worked even with the r16b NDK.

          M 1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Then can you show the complete error ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            ad1170A 1 Reply Last reply
            0
            • SGaistS SGaist

              Then can you show the complete error ?

              ad1170A Offline
              ad1170A Offline
              ad1170
              wrote on last edited by
              #5

              @SGaist The only information i get is "Can't find C++ dbugger." (see screenshot). There is no compile error or any other that i can tell you.
              (0_1525856276694_QtDebugErr1.JPG image url)

              1 Reply Last reply
              0
              • ad1170A ad1170

                @SGaist Thank you for reply. Yes, you are right but this was not a problem. I'm using the NDK r16b since at least 4 or 6 weeks and the debugging has worked even with the r16b NDK.

                M Offline
                M Offline
                mvuori
                wrote on last edited by
                #6

                @ad1170 said in QtCreator: Can't find C++ debugger:

                Yes, you are right but this was not a problem. I'm using the NDK r16b since at least 4 or 6 weeks and the debugging has worked even with the r16b NDK.

                That doesn't prove anything. There may have been a configuration conflict that may have caused everything to work correctly... One part of software reliability is that systems do not produce problems at one point, even if there is no apparent change made by the use.

                ad1170A 2 Replies Last reply
                0
                • M mvuori

                  @ad1170 said in QtCreator: Can't find C++ debugger:

                  Yes, you are right but this was not a problem. I'm using the NDK r16b since at least 4 or 6 weeks and the debugging has worked even with the r16b NDK.

                  That doesn't prove anything. There may have been a configuration conflict that may have caused everything to work correctly... One part of software reliability is that systems do not produce problems at one point, even if there is no apparent change made by the use.

                  ad1170A Offline
                  ad1170A Offline
                  ad1170
                  wrote on last edited by
                  #7

                  @mvuori Might by, but i have never used the NDK 10. I have started development with NDK 13 and i never seen this kind of issue. But i will try to debug with the outdated NDK.

                  1 Reply Last reply
                  0
                  • M mvuori

                    @ad1170 said in QtCreator: Can't find C++ debugger:

                    Yes, you are right but this was not a problem. I'm using the NDK r16b since at least 4 or 6 weeks and the debugging has worked even with the r16b NDK.

                    That doesn't prove anything. There may have been a configuration conflict that may have caused everything to work correctly... One part of software reliability is that systems do not produce problems at one point, even if there is no apparent change made by the use.

                    ad1170A Offline
                    ad1170A Offline
                    ad1170
                    wrote on last edited by
                    #8

                    @mvuori said in QtCreator: Can't find C++ debugger:

                    @ad1170 said in QtCreator: Can't find C++ debugger:

                    Yes, you are right but this was not a problem. I'm using the NDK r16b since at least 4 or 6 weeks and the debugging has worked even with the r16b NDK.

                    That doesn't prove anything. There may have been a configuration conflict that may have caused everything to work correctly... One part of software reliability is that systems do not produce problems at one point, even if there is no apparent change made by the use.

                    I have rebuild the app using NDK 10e and try to debug, but the result is the same.

                    1 Reply Last reply
                    0
                    • ad1170A Offline
                      ad1170A Offline
                      ad1170
                      wrote on last edited by ad1170
                      #9

                      Meanwhile i have found the problem. The QtCreator 4.6.1 does not work with android debugging (at least for me).
                      The issue is the same on Linux. I have installed the QtCreator 4.6.0-rc1 and the android debugging is now possible again. I'm wondering that no one has this issue. The QtCreator 4.6.1 is already released for a few days.

                      1 Reply Last reply
                      2
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #10

                        Glad you found a workaround and thanks for sharing !

                        4.6.1 being pretty new, you might be the first to hit that. You should check the bug report system to see if there's something related.

                        The release notes might give you some clue about what has changed.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        ad1170A 1 Reply Last reply
                        1
                        • SGaistS SGaist

                          Glad you found a workaround and thanks for sharing !

                          4.6.1 being pretty new, you might be the first to hit that. You should check the bug report system to see if there's something related.

                          The release notes might give you some clue about what has changed.

                          ad1170A Offline
                          ad1170A Offline
                          ad1170
                          wrote on last edited by ad1170
                          #11

                          @SGaist said in QtCreator: Can't find C++ debugger:

                          Glad you found a workaround and thanks for sharing !

                          4.6.1 being pretty new, you might be the first to hit that. You should check the bug report system to see if there's something related.

                          The release notes might give you some clue about what has changed.

                          Already done... (https://bugreports.qt.io/browse/QTCREATORBUG-20403)

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #12

                            Thanks, you should also add the SDK/NDK version you have on your system and that you tested several of them.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • SR__S Offline
                              SR__S Offline
                              SR__
                              wrote on last edited by SR__
                              #13

                              @ad1170 Sadly, you're not the only one experiencing this problem… https://bugreports.qt.io/browse/QTCREATORBUG-20379
                              Hum, actually it is not exactly the same problem, as the debugger starts in the bug I've linked. But I do have the "Can't find C++ debugger." problem.
                              Well, should not take long before it is fixed, as Bogdan has promised it : https://www.kdab.com/perfect-debugging-experience-with-qtcreator-on-android/ ;-)

                              1 Reply Last reply
                              1
                              • E Offline
                                E Offline
                                ebonnett
                                wrote on last edited by
                                #14

                                Sadly is right. I've got an app that's days away from release and I can't debug. I've been suffering with this problem for months and NOBODY can help. Qt's debugging mechanism is flakey at best and I've very sorry the uppers didn't listen to me and go with Xamarin. I know this isn't the best way to get people to try to help but this sucks. Really sucks. It's unacceptable and there seem to be no options.

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #15

                                  Did you test the latest versions of Qt Creator ?
                                  Did you update the bug report with new information if your situation is different ?

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  E 1 Reply Last reply
                                  1
                                  • SGaistS SGaist

                                    Did you test the latest versions of Qt Creator ?
                                    Did you update the bug report with new information if your situation is different ?

                                    E Offline
                                    E Offline
                                    ebonnett
                                    wrote on last edited by ebonnett
                                    #16

                                    @SGaist I am on the latest (4.6.2). However my debugger problems have been persistent through upgrades. To be clear, when I started using Qt, my Nexus 6P worked and my Note 4 worked. Then something (not sure what because it's been months) happened and my Nexus 6P stopped working. I think it was an Android update. All of a sudden I started getting an very descriptive error (I'm being facetious here): Connecting to remote server failed:
                                    Remote communication error. Target disconnected.: No error.

                                    So I stuck to debugging on the Note 4. But that is problematic too because it takes between 15 -25 seconds to step over or into. Then I upgraded to 4.6.1 and all of a sudden I started getting the error listed above (Can't find C++ debugger). Well, the debugger is there. So, I uninstalled everything: NDK, SDK, Windows SDK, Qt Creator... (multiple times) and followed the Qt documentation, installing everything over, paying extra attention to recommended versions and such. Now I'm on 4.6.2 and 5.11. Still the same. It's very frustrating as you can tell by my post.

                                    1 Reply Last reply
                                    1
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #17

                                      I completely understand. From what you wrote, it seems that an update to Android started to break things.

                                      You may have an unusual setup or maybe a combo of hardware/software that hasn't been encountered before. Ranting here won't help as this forum is not monitored by Qt developers. You should rather add these informations to the related bug report(s). That would help get things fixed more quickly.

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      1
                                      • V Offline
                                        V Offline
                                        Vega4
                                        wrote on last edited by
                                        #18

                                        Replying to this old topic BUT..

                                        As soon as we've installed Android Emulator for API 30 through the SDK manager, this error now begins to pop-up even when targeting hardware devices thus we are able to debug nothing. And note that API is now the min. required. NDK 21.3.6

                                        1 Reply Last reply
                                        0

                                        • Login

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