Debug Android app with Eclipse on real devices
General instructions to follow:
- Do adb devices in command prompt - are you able to see device - Yes
then great , else restart adb device/reconnect device/ check drivers - 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. - 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
Successful Share Intent for Android
Uninstall App Silently with System Privileges
How to Make a Linearlayout Scrollable
When to Use Fragmentmanager::Putfragment and Getfragment
Android: Why Does Long Click Also Trigger a Normal Click
Get Context of Test Project in Android Junit Test Case
Macbook Adb Cannot Open Interface
Android Studio Could Not Find Any Version That Matches Com.Android.Support:Appcompat-V7:+
Adb Shell Su Works But Adb Root Does Not
Add Margin Between a Radiobutton and Its Label in Android
How to Change Android:Windowsoftinputmode Value from Java Class
Using Espresso to Unit Test Google Maps
Service Intent Must Be Explicit: Intent
How to Set The App Icon as The Notification Icon in The Notification Drawer