android studio open debug mode when app is running

skhizein picture skhizein · Jul 16, 2013 · Viewed 21.4k times · Source

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?

Answer

ingh.am picture ingh.am · Sep 26, 2013

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.