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. Hit C++ breakpoints on Android
Forum Updated to NodeBB v4.3 + New Features

Hit C++ breakpoints on Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 614 Views 1 Watching
  • 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.
  • alemioA Offline
    alemioA Offline
    alemio
    wrote on last edited by
    #1

    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 same

    This is the initial output of the working project
    910eb569-396b-491f-948c-3c2f73c2931e-immagine.png

    This is the initial output of the not working project
    cacafd4c-ec66-46c7-876d-6bd4675d5889-immagine.png

    In the working project I see ""Could not load shared....", in the not working project I don't see it

    Please help me

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jarek B
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • alemioA Offline
        alemioA Offline
        alemio
        wrote on last edited by
        #3

        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.

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

          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.

          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