Reputation: 2654
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.
Upvotes: 19
Views: 16899
Reputation: 1143
The app needs to be in release mode on a plugged in device.
Steps
flutter run --release
flutter logs
Note
print()
statements will showUpvotes: 0
Reputation: 2654
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.
Upvotes: 43