Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 691
skhizein Avatar asked Jul 16 '13 13:07

skhizein


People also ask

What is the difference between run and debug in Android Studio?

Run simply launches the application (regardless of what the flavor is). Debug essentially does the same thing but will stop at any breakpoints that you might have set ...

How do I enable debug on APK?

To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or Debug APK from the menu bar. In the next dialog window, select the APK you want to import into Android Studio and click OK.


1 Answers

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.

like image 184
ingh.am Avatar answered Sep 28 '22 09:09

ingh.am