Louisth
Louisth

Reputation: 726

Debug Android app with Eclipse on real devices

I have attach my real Android device on eclipse and run the debug mode, the application is launch and run on real devices. Toggle Breakpoint is added, but it seem don't hit even is suppose the line is have been run already.

Error is no fix --> Source Not found --> Edit Source Lookup Path -> Project -> Select the project -> ok

Upvotes: 2

Views: 1519

Answers (1)

Vrashabh Irde
Vrashabh Irde

Reputation: 14377

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.

Upvotes: 1

Related Questions