How to set eclipse points to the cupcake emulator?

21 views
Skip to first unread message

yin...@gmail.com

unread,
Jan 29, 2009, 2:06:47 PM1/29/09
to android-platform
Hi,

After I compile cupcake source code, how can I configure eclipse
points to the cupcake emulator that I built?
I mean which sub-directory of my cupcake home I should put in the ADT
preference in eclipse?

Thank you.

Andrew Stadler (Google)

unread,
Feb 7, 2009, 2:10:10 AM2/7/09
to android-...@googlegroups.com
ADT is designed for debugging applications built with the SDK.
Debugging framework code is a bit different - you'll just use standard
Remote Java debugging to attach to the process of interest.

If you'd like to debug framework code in the emulator, you need to do
two things:

(1) After the emulator has launched, use DDMS (in Eclipse or
standalone) to select a process to debug. The selected process will
now have its java debug port available at port 8700.

(2) In Eclipse, create a debug configuration, of type "Remote Java
Application", and set the connection to localhost, port 8700. Save
the configuration. Then click "debug".

You are attaching to an already-running process, so you'll typically
use breakpoints to stop the process and step or examine your code.
There are a number of other caveats you'll discover - this is a useful
technique, and we use it for debugging framework and system code, but
it is not nearly as well integrated as application debugging with the
SDK.

I hope this helps,
--Andy

James Wylder

unread,
Feb 7, 2009, 12:49:46 PM2/7/09
to android-...@googlegroups.com
This also is documented at http://source.android.com/using-eclipse.

-- Jim
Reply all
Reply to author
Forward
0 new messages