How to debug the Android App in release mode using Android studio

Bazi Paleri

For some reason I have to run my Android App in release mode.I have to run through the code when running the app just like we use in debug mode. My break points are not hitting when I run in release mode, I have added android:debuggable="true" in manifest. Still the breakpoint is not hitting. Any help.

Thanks in Advance

Bazi Paleri

In my case, I have created the debug configuration same as previous release build and started debugging. It means you have to give sign build in debug version also in build gradle.

signingConfigs {
    config {
        keyAlias 'abc'
        keyPassword 'xyz'
        storeFile file('<<KEYSTORE-PATH>>.keystore')
        storePassword 'password'
    }
}
buildTypes {
  debug {
      debuggable true
      signingConfig signingConfigs.config
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}

So It will have the same sign as release build and you can debug when it runs.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android - app icon for debug and release mode

From Dev

Android Studio: run/debug release version of app

From Dev

Android Studio App only Debug-Mode

From Dev

Allow Api Access for Android App From Both in Debug and Release Mode

From Dev

How can I know if my android app was built in release or debug mode?

From Dev

Error building Android app in release mode, in Android Studio

From Java

Android studio - deploy the release apk instead of debug

From Dev

Android Studio NDK release/debug defines

From Dev

App works in debug mode but crashes with release apk showing java.lang.RuntimeException:Android

From Dev

How to debug in release mode

From Dev

How to debug in release mode

From Dev

How to Debug in Android Studio?

From Dev

How to compile libprotobuf in Release/Debug x64 mode using Visual Studio 2013

From Dev

android app force closing in release mode

From Dev

App Crashing in release mode at launch Xamarin Android

From Dev

Android Studio : How to remove/filter build variants for default debug and release buildTypes and keep only those using custom buildTypes?

From Dev

Android Studio starting in debug mode by default

From Dev

Android Studio starting in debug mode by default

From Dev

Android - Using the same keystore for debug and release

From Dev

Android useful debug/release macros (using gradle?)

From Dev

Android - Using the same keystore for debug and release

From Java

Android app crashes when launched in debug mode

From Dev

Detect Android App Is Running In Debug Mode

From Dev

Separate XML line for debug or release mode in android manifest

From Dev

Xamarin Android app crash in Release mode (Parse.Android SDK)

From Dev

Android Studio : install Release App by command line

From Dev

Android Studio : install Release App by command line

From Dev

How to modify android app for android of things using android studio

From Dev

How to debug Android App in Exclipse?

Related Related

  1. 1

    Android - app icon for debug and release mode

  2. 2

    Android Studio: run/debug release version of app

  3. 3

    Android Studio App only Debug-Mode

  4. 4

    Allow Api Access for Android App From Both in Debug and Release Mode

  5. 5

    How can I know if my android app was built in release or debug mode?

  6. 6

    Error building Android app in release mode, in Android Studio

  7. 7

    Android studio - deploy the release apk instead of debug

  8. 8

    Android Studio NDK release/debug defines

  9. 9

    App works in debug mode but crashes with release apk showing java.lang.RuntimeException:Android

  10. 10

    How to debug in release mode

  11. 11

    How to debug in release mode

  12. 12

    How to Debug in Android Studio?

  13. 13

    How to compile libprotobuf in Release/Debug x64 mode using Visual Studio 2013

  14. 14

    android app force closing in release mode

  15. 15

    App Crashing in release mode at launch Xamarin Android

  16. 16

    Android Studio : How to remove/filter build variants for default debug and release buildTypes and keep only those using custom buildTypes?

  17. 17

    Android Studio starting in debug mode by default

  18. 18

    Android Studio starting in debug mode by default

  19. 19

    Android - Using the same keystore for debug and release

  20. 20

    Android useful debug/release macros (using gradle?)

  21. 21

    Android - Using the same keystore for debug and release

  22. 22

    Android app crashes when launched in debug mode

  23. 23

    Detect Android App Is Running In Debug Mode

  24. 24

    Separate XML line for debug or release mode in android manifest

  25. 25

    Xamarin Android app crash in Release mode (Parse.Android SDK)

  26. 26

    Android Studio : install Release App by command line

  27. 27

    Android Studio : install Release App by command line

  28. 28

    How to modify android app for android of things using android studio

  29. 29

    How to debug Android App in Exclipse?

HotTag

Archive