Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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"
like image 594
Jakub S. Avatar asked Sep 11 '25 20:09

Jakub S.


2 Answers

Plug your phone (if it is the case) on your computer and type on terminal:

$ flutter logs

You should be able to choose the device you want to see logs.

like image 154
Cícero Moura Avatar answered Sep 13 '25 09:09

Cícero Moura


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

like image 30
RITTIK Avatar answered Sep 13 '25 09:09

RITTIK