For more information, see the
DevTools documentation.

Setting breakpoints

You can set breakpoints directly in your IDE/editor
(such as Android Studio/IntelliJ and VS Code),
in the DevTools debugger,
or programmatically.

The Dart analyzer

If you’re using a Flutter enabled IDE/editor,
the Dart analyzer is already checking your code
and looking for possible mistakes.

If you run from the command line,
test your code with flutter analyze.

The Dart analyzer makes heavy use of type annotations that
you put in your code to help track problems down.
You are encouraged to use them everywhere (avoiding var,
untyped arguments, untyped list literals, and so on)
as this is the quickest and least painful way of tracking
down problems.

For more information, see Using the Dart analyzer.

Logging