31.39 Flutter Debug Mode
20240512
The Flutter build
and run
commands include debug information by
default so that you can interact with a running app.
When you compile with --release
such debugging information is not
included in the app, and generally the code is smaller and runs faster.
The debugPrint()
function will only print to the console when in
debug mode. It is good to use this in preference to print()
, to
track code execution and backtraces. Use print() for human readable
messages to the console for errors, like errors with login
credentials for the app.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0