Hi

These steps will help you to debug the system applications (Messaging,
IM, Phone book etc.) in target or emulator. For debugging application
in emulator no need to install or push new APK into emulator you can
map existing APK (preinstalled APK) in emulator with eclipse source
code.

Step 1: First launch emulator from command line (by typing Emulator
command)
Step 2: Then launch DDMS using command line (by typing DDMS command)
Step 3: Start your application in emulator which you want to debug and
you can check the process into DDMS (DDMS will automatically sync with
emulator on 8700 Port)
Step 4: Start eclipse and open your source project (you will get one
error regarding port 8700, please ignore it this is due to DDMS
already sync on 8700 port)
Step 5: Put break pointer in your source code to debug it
Step 6: Right click on your project -> Debug as -> Debug
Configurations then you will see Debug configuration window
Step 7: Right click on ‘Remote Java Application’ and select ‘New’ then
give name ‘android-debug’ or anything you like.
Step 8: Set the ‘Project’ to your source project
Step 9: Keep the ‘Host’ set to ‘localhost’, but change ‘Port’ to 8700.
Step 10: Click the ‘Debug’ button and navigate in your application on
emulator.

Anil Yadav (anily0...@gmail.com)


On Dec 29 2008, 10:59 am, chrispix <chris...@gmail.com> wrote:
> I am not sure what is wrong, but I can't seem todebugon the G1, I
> candebugfine on the emulator, it runs fine on emulator with an iso
> sd card loaded. It runs fine on the G1, but when I go todebugit says
> that it is waiting on the debugger. Any help or what messages need
> would be great.. Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to