[android-developers] Re: Debug multi process android app in eclipse

2008-12-16 Thread Manoj Gopalakrishnan
Hi, When I do to DDMS->Device Menu and try to select the service process by clicking the green bug, I get error as "No open project found for com.example.testservice:remote. Debug session failed". Actually both the service and activity process is part of same project and both source files are pre

[android-developers] Re: Debug multi process android app in eclipse

2008-12-16 Thread mnj
Hi, When I do to DDMS->Device Menu and try to select the service process by clicking the green bug, I get error as "No open project found for com.example.testservice:remote. Debug session failed". Actually both the service and activity process is part of same project and both source files are pr

[android-developers] Re: Debug multi process android app in eclipse

2008-12-16 Thread Xavier Ducrohet
One of the things that you can do is put android.os.Debug.waitForDebugger() in the starting code of your service. By doing this, the Android VM will pause and wait for a debugger to be connected. Eclipse/ADT will notice this and automatically connect a debugger to your service process. If you do

[android-developers] Re: Debug multi process android app in eclipse

2008-12-16 Thread Dianne Hackborn
It can be pretty awkward -- you need to manually connect to the process you want to debug (ddms will tell you the port number to connect to), and then you can pause threads and have your breakpoints for code running there be hit. Why are you having your service run in a separate process? This is