In my application an activity starts a service which runs as a separate process, I want to debug the Activity as well as the service but debugger does not stop at the breakpoints in service?
Thanks for help.
Just to elaborate on the other answers here, you can temporarily put android.os.Debug.waitForDebugger();
in the code of your secondary process to make this easier.
Then, just attach your debugger to the process via DDMS or IntelliJ (or whatever you're using).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With