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 present in same folder.
I can see following port numbers Activity -> com.example.testservice , port number as 8611 Service -> com.example.testservice:remote , port number as 8614/8700 Few more info if it helps - I have an an AIDL file and in service class I'm implementing the AIDL interface functions in Interface stub class. Note: I'm trying to run the service in different process for 2 reasons : 1) For general understanding and how to debug multiprocess activity/ service 2) If activty is closed I still need to run service in background say running music in background. Activity will allow user to select the music. Service in different process would run the music in background if user is doing other things on phone. Regards, Manoj On Dec 17, 12:47 am, Xavier Ducrohet <[email protected]> wrote: > 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 not want to change your code, you can go into the DDMS > perspective in Eclipse, then, in the Device view, you can select your > service process and click the green bug icon (or choose "debug > process" from the view menu). This will automatically connect a > debugger to the process. > > The advantage of the first method is that you can put breakpoints > earlier in your code and make sure you'll stop on them without having > timing issue. > > Xav > > > > On Mon, Dec 15, 2008 at 11:17 PM, mnj <[email protected]> wrote: > > > Hi, > > > I have a activity and service which are running as a seperate process. > > I'm able to see the logs of activity(process1) and service(process2) > > in logcat. > > > But when I keep breakpoint in service process its not hitting there. > > Breakpoint works only in activity process. > > > Can someone tell me how can I debug multi process in eclipse. > > Currently, for debugging purpose I'm making service and activity to > > run as same process. > > > Regards, > > Manoj- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

