If you output too much at once, then Android sometimes
discards some log lines. To avoid this, use debugPrint(),
from Flutter’s foundation library. This is a wrapper around print
that throttles the output to a level that avoids being dropped by
Android’s kernel.

The other option for application logging is to use the
dart:developer log() function. This allows you to include a
bit more granularity and information in the logging output.
Here’s an example:

You can also pass application data to the log call.
The convention for this is to use the error: named
parameter on the log() call, JSON encode the object
you want to send, and pass the encoded string to the
error parameter.

If viewing the logging output in DevTool’s logging view,
the JSON encoded error param is interpreted as a data object
and rendered in the details view for that log entry.

Setting breakpoints