flutterdart

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


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.


Solution

  • 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.