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
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
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
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
4 matches
Mail list logo