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. Debug Android app on Real Device
QtWS25 Last Chance

Debug Android app on Real Device

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 2.7k 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.
  • C Offline
    C Offline
    clouca
    wrote on last edited by
    #1

    Hello to everyone. I am using Qt 5.1.1 and android sdk. Until now i can debug my apps using android sdk. I want to debug my application on my Real android device which is a tablet. How can i setup Qt to run in debug at my real device to use breakpoints and make a real debug of my application.
    Thanks

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

      Turn on USB debugging : Settings->Applications->Development->USB debugging. You also need to download Google USB Driver (for ADP) or the OEM USB Drivers.

      To verify your phone is connected use "adb devices" in cmd.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clouca
        wrote on last edited by
        #3

        how can i set my phone as deployment target ?

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

          I updated my post setting the target is not on QT, sorry. Just run your program after you have verified that your phone is connected.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ahmad88me
            wrote on last edited by
            #5

            Once you connect your phone to the computer, using the terminal or the cmd navigate to the sdk-directory/platform-tools then type
            in linux:
            @./adb devices@
            in windows:
            @adb devices@
            you should get a list of android devices, if you did not find your device there try to unplug it and plug it again, at the end you must see you device when you run the command,

            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