Android: how to mark my application as debugged?

I want to debug the application from the phone. How do I sign my application so that I can do it? I donโ€™t know much about the manifest.

+26
android debugging android-manifest
Jun 01 '10 at 18:10
source share
2 answers

By android:debuggable="true" in your manifest file, the application will go into debug mode, which means that android will manage the entire log file related to your application. But be sure to return it false (or remove this tag) if the application will work or in release mode.

 <manifest xmlns:android="http://schemas.android.com/apk/res/android" ... <application android:icon="@drawable/icon" android:debuggable="true" 
+32
Jun 01 '10 at 19:00
source share

With the new Gradle build system, it is recommended to use this in build types.

In your build.gradle application build.gradle :

 android { //... buildTypes { debug { debuggable true } customDebuggableBuildType { debuggable true } release { debuggable false } } //... } 
+27
Dec 07 '15 at 14:20
source share



All Articles