How to Debug on a Real Device (Using Eclipse/Adt)

Debug Android app with Eclipse on real devices

General instructions to follow:

  1. Do adb devices in command prompt - are you able to see device - Yes
    then great , else restart adb device/reconnect device/ check drivers
  2. Change run configurations of the project(right
    click->Properties->Run As->Run Configurations-> Target) to prompt
    for device everytime you run. The device should have USB Debugging enabled.
  3. Click on the debug icon in your toolbar and choose your device for
    debugging - put break points and voila it should work. Make sure your Breakpoints are in places where the code is generated. Code may not be hit sometimes because thats how the code is

This is for Google Approved devices.

How do I get eclipse ADT to show on my device for debugging?

If you have correct driver installed for USB debugging , You can do debugging/ run via

run-> run configurations->click Target tab-> select always prompt to pick device

How to debug an Android program on a real device using Eclipse?

You need to go into the developer settings menu on the phone and enable USB debugging.

Can't run android app on real device

  • look for the USB driver for your device
  • install it
  • restart your command prompt

Eclipse doesn't see my Android device

1) Connect your phone with your computer (Easy)

2) Enable USB debugging How to do it

3) Watch this video so as to
Install the correct drivers on your computer How to do it

Hope that helps!!

How do you use usb debugging with eclipse and real android device

Make sure 'skip all breakpoints' is not enabled in debugging controls.



Related Topics



Leave a reply



Submit