Search code examples
debuggingandroid-studiopid

android studio open debug mode when app is running


How can open debug mode when application is running on android studio.,

My application is appearing on -Android Device Monitor- Devices tab . When i clicked application line on this screen ,debug icon is not active

How can i pass to debug mode after running my application?


Solution

  • In Android Studio (I'm currently using I/O Preview 0.2.10) simply click on the icon in the toolbar that looks like a phone with a bug over it - the hover text says: Attach debugger to Android process. It's the third icon along: Attach debugger

    A list will then appear showing your processes that you can debug. Choose one and select OK - your application is now being debugged!

    Note: Make sure your app is debuggable, as shown here.