how to debug android application line by line using eclipse

how to debug android application line by line using eclipse  using -'android,eclipse,debugging'

I am familiar with VS.Net IDE & it has a lot of support for debugging. But the android development is something new for me. I am using the Eclipse IDE. I was wondering how to debug the android application line by line just like we can do in .Net IDE?

Currently i am using the log window, but i am not happy with it. I need suggestion from the expert guys, what is the best way to debug the Android application using Eclipse?

Great thanks for your valuable time & help.

asked Sep 15, 2015 by JasL98
0 votes

4 Answers

0 votes
  1. either start the app by right clicking on the project and select Debug As->Android Application or by running it normally and later in the DDMS perspective select the running app in your devices pane and click on the green bug.

  2. once a breakpoint has been hit you can step over (f6) or step into (f5) (check the Run menu for more commands).

answered Sep 15, 2015 by KarinaGoodfe
0 votes

I just set up the Eclipse included in the Android Development Tools (ADT), the adt-bundle-mac-x86_64-20131030 version. Setting the property in the manifest file gave me a warning saying that it would be better to set up different Run and Debug configurations. It turns out that I simply needed to create a debugging profile:

  1. Run >> Debug Configurations...
  2. Click "Debug" to take the defaults

Now you can go to Run >> Debug to run on the device. (Assuming that the device has debugging enabled, of course)

If you are an Eclipse or ADT developer and are reading this, I strongly suggest that Eclipse create a debugging configuration by default.

answered Sep 15, 2015 by CarolPerezip
0 votes

Put a breakpoint on the line you want to start debugging from, then Run the Application in Debug mode, the app will hit the breakpoint and then you can go through it just like in VS.

answered Sep 15, 2015 by SpeMenge