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. [SOLVED]Can't hit breakpoints on code ported to 5.1 android
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Can't hit breakpoints on code ported to 5.1 android

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 2.4k 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.
  • M Offline
    M Offline
    MyQtAccount
    wrote on last edited by
    #1

    I've been porting over a project from Necessitas to 5.1. I never had breakpoints working with Necessitas.

    A newly created android 5.1 project will allow be to set breakpoints in my c++ code. For some reason though, breakpoints get ignored on the ported project. I can see debug output with qDebug no problem.

    Looking at the two projects, I haven't see anything that looks like a breakpoint enable value. Anybody know how to turn it on for the other project?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Moster
      wrote on last edited by
      #2

      Maybe the ported project is not set to Debug build configuration?
      Check that in your project settings -> Build -> QMake (build steps)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MyQtAccount
        wrote on last edited by
        #3

        The little tab at the bottom left is set to Debug. The effective qmake steps both look the same.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Moster
          wrote on last edited by
          #4

          This is how my release one looks like:
          qmake /+++/qt/orb/orb.pro -r -spec android-g++
          debug: qmake /+++/qt/orb/orb.pro -r -spec android-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MyQtAccount
            wrote on last edited by
            #5

            Mine looks like this (pathhere to protect the names of the innocent).
            qmake /pathhere.pro -r -spec android-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug

            Sample that works and port that doesn't both look the same.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Moster
              wrote on last edited by
              #6

              Edit: Would you mind to share the code or is it something you cant do?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MyQtAccount
                wrote on last edited by
                #7

                Found the problem.
                In the .pro file was:
                CONFIG += console
                release \

                Needed to be:
                CONFIG += console
                debug \

                Also, after making the change I had to do a rebuild all for it to take effect.

                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