Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view Flutter debug console output for a release version of the app?

Tags:

flutter

dart

Using print() to log messages works in debug mode and I can see output in debug console of VSCode or in terminal. How can I get those with release build ? I have seen release build producing such logs but not sure how to get those.

like image 787
Steev James Avatar asked Aug 27 '20 14:08

Steev James


People also ask

How do you show logs in release mode in flutter?

Open Android Studio with a dummy Android project (not Flutter). You'll find the Logcat pane on the bottom. That shows all the logs of all the apps running on your device. Filter by "flutter" and you should see logs of all Flutter apps running on that device.


1 Answers

Run

$ flutter logs

in terminal with terminal opened in a flutter project directory, connect phone with computer and use the release version of the app on phone to see logs similar to the debug version shows.

Edit: Not sure if this works for iOS.

like image 168
Steev James Avatar answered Oct 21 '22 09:10

Steev James