I'm assuming you are using Eclipse, Ganymede.

Go into the Run Debug Configuration and create a new "Remote
Java Application" configuration.  Point it at your service project.
Make sure the Connection Port is 8700.

Start your app that will start the service.  With both still running
go to DDMS and
find the service in the processes of the device in the Devices window.
Select the service, DDMS should now switch 8700 to the service.

Run the debug configuration you just created for the remote app.
It should connect.  In the Debug perspective process/thread window
you should be able to switch between processes and set break points
in the service.  You can actually set breakpoints in both the service
and the app freely, it will switch as needed.

  mike

On Aug 15, 6:32 pm, cafffiene <[email protected]> wrote:
> Is there a way to step through code in a remote service?  What I do
> now is install the service, then run the app that starts it and use
> trace output.  Is there a way to perhaps automatically start the
> service upon installation, and have it stop at break points?  Or is
> there another method?  thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to