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.
2 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.
8 Comments
Taha Malik
Please Elaborate what are you trying to say here? A released version of the app is not connected to any console. So, where to write that command. Or first connect the mobile device to a system and run flutter logs in the console?
Steev James
@TahaMalik, Run this command in terminal, connect phone & run the release version of the app & it shows logs like in debug mode.
anonymous-dev
This does not seem to work on IOS
IulianT
i confirm that it does not work on ios
kokemomuke
not working in ios
|