I'm developing a Flutter application on Windows, and everything works perfectly in debug mode. However, when I switch to release mode, I encounter multiple issues, particularly with the UI rendering in specific contexts.
The codebase is quite complex, and I'd like to set breakpoints in release mode to better understand and resolve these errors. Unfortunately, Flutter doesn't seem to provide an easy way to debug the release build by default. I attempted modifying the CMakeLists.txt file to enable debug symbols, but it didn't work as expected.
Could someone guide me on how to enable debugging (including breakpoints) for a Flutter release build on Windows? Any tips on how to troubleshoot and fix these issues in release mode would be greatly appreciated.
1 Answer 1
There are few things you can consider
- Adding any crash reporting / management tool like Crashlytics or Sentry. You can configure the alerts as well
- Add log option in the app and and option to export the logs.
In android and ios, usually will add dev logs (using log('Message to display'); ) and will listen to them using flutter logs command in cmd / terminal
1 Comment
Explore related questions
See similar questions with these tags.