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. Breakpoints not working on android deployed app

Breakpoints not working on android deployed app

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 1.7k Views 2 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.
  • D Offline
    D Offline
    DonLakeFlyer
    wrote on last edited by
    #1

    Breakpoints set in QtCreator are never hit when I deploy my app to my Samsung Galaxy Tab. To simplify things I just tried using the Examples/androidextras/notification example to simplify things.

    I've already checked the following:

    • Debugger is set to arm-linux-androideabi-gdb
    • Update ndk and sdk
    • I am running a debug build
    • Deploy works
    • I get qDebug output in QT Creator
    • I'm connected via usb
    • Running Qt 5.4
    • Running on OSX

    Any hints on other things I should look for to try to figure this out?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DonLakeFlyer
      wrote on last edited by
      #2

      I'll answer my own question. The tablet needs to be rooted in order to set breakpoints in native code.

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

        I am sorry to necrobump such an old topic, but I am facing exactly the same issue. Breakpoints in QtCreator are being ignored when debugging an Android application. Starting the application with breakpoints yields no reaction. Setting breakpoints while the app is running yields an error message about gdb being unresponsive.

        The Application Output looks quite reasonable, at the beginning I see the following lines:

        I Qt JAVA : DEBUGGER: Waiting for debug socket connect
        I Qt JAVA : DEBUGGER: go to sleep
        I Qt JAVA : DEBUGGER: Waiting for debug socket connect
        I Qt JAVA : DEBUGGER: go to sleep
        I Qt JAVA : DEBUGGER: Incoming socket OK
        I Qt JAVA : DEBUGGER: Got pid acknowledgment
        I Qt JAVA : DEBUGGER: ping not requested
        I Qt JAVA : DEBUGGER: pong not requested

        Is it still necessary to root devices for debugging?

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Padlock
          wrote on last edited by
          #4

          You need to make sure your app waits for the debugger. That's a setting in Android. Only one app can be debugged, and this app has to be explicitely specified (Debug app or similar; I forgot the exact text). I do remember that the text of that setting made me believe I'm going to set up the debugger to use, which is not the case. It's to tell Android which app you'd like to debug.

          Of course the app needs to be in debug mode and and and.

          In my case the app just ran off before the debugger (qdb) had a chance to catch up.

          1 Reply Last reply
          1

          • Login

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