How to Debug Android application line by line using Eclipse?

     Solution1:


  1. you need to set android:debuggable="true" in your application in the AndroidManifest.xml. if you haven't set that setting, debugging will not be enabled.
  2. 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.
  3. once a breakpoint has been hit you can step over (f6) or step into (f5) (check the Run menu for more commands).


    Solution2:


    Well i found some articles which guides how to debug using Eclipse.
    1- Free video tutorial will teach you how to use the Eclipse Java Debugger
    2- Debugging with the Eclipse Platform
    3- 5 Tips for Debugging Java Code in Eclipse
    4- Java Debugging with Eclipse - Tutorial

     




Comments

Popular posts from this blog

How to draw an overlay on a SurfaceView used by Camera on Android?

Create EditText with dropdown in android

Android TCP Connection Chat application