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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With