Flutter SDK: Errors consumed silently in debug mode?

I have a case where a bloc in my app causes an NPE and the NPE doesn’t show up in the logs at runtime (debug build).

Once I remove the SentryFlutter.init(...) wrapped from my _runApp() method, the NPE is printed out in the logs again.

What can I do so that I can keep Sentry but logs are still reported in the debug console?

Attached a screenshot for reference where as soon as we moved _runApp() outside SentryFlutter.init(...) and commented the SentryFlutter.init(...) part, the logs for the NPE appeared.

Hi, it could be because you are calling WidgetsFlutterBinding.ensureInitialized(); manually, check out this comment and see if that helps → MissingPluginException · Issue #599 · getsentry/sentry-dart · GitHub