0

I am using eclipse as the IDE and I have written small programs but now I want to debug them so that i could check the flow of control

1
  • What is the question? How to debug? Commented Jan 26, 2011 at 12:49

1 Answer 1

1

If you are using eclipse you can just set a breakpoint as in any usual Java Application and then do a right click on your project and select Debug as -> Android Application instead of Run as -> Android Application. Now Eclipse will connect the debugger to your emulator or phone and open the debugger once you are reaching the breakpoint.

If the breakpoint is not reached have a look at your manifest.xml file and be sure to mark your application as debuggable.

For that you have to add the attribute debuggable to your application tag.

<application
    android:icon="@drawable/logo"
    android:name="Name"
    android:label="@string/app_name"
    android:debuggable="true">
Sign up to request clarification or add additional context in comments.

1 Comment

New SDK/AVD will add this debuggable attribute automatically. However, you have to remove it manually. It's in the manifest file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.