By default, flutter run compiles to debug mode. Your IDE supports this mode. Android Studio, for example, provides a Run > Debug… menu option , as well as a green bug icon overlayed with a small triangle on the project page.
Read moreHow do I use debug mode?
Set a breakpoint and start the debugger
Read more