Search code examples
androidandroid-studioflutterrelease-modeflutter-debug

Flutter debugging release mode, enable logs in release mode


I know based on documentation that

Debugging information is stripped out. Debugging is disabled.

But can we somehow force to print logs, or maybe debug in release mode? "production app" I'm using Android Studio.

For example while developing android app in AS we are able to print logs

android:debuggable="true"

Solution

  • To check all available devices run flutter devices

    Then run the below command to run the app in release mode with the logs
    flutter run -d [deviceID] --release