Search code examples
androidandroid-studioandroid-backgroundandroid-debugging

How to debug android apps running in background and Foreground


When we remove an app from foreground logcat gets full of other stuff.


Solution

  • If you have an app running on your device and you want to attach a debugger to its process then you can hit the "Attach Debugger" button as shown in the image below:

    Attach Debugger Button

    Then select the process you want to debug. You can only do this with your own apps of course.