Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch flutter errors in bootstrap #165

Open
jtdLab opened this issue Aug 26, 2023 · 0 comments
Open

Catch flutter errors in bootstrap #165

jtdLab opened this issue Aug 26, 2023 · 0 comments

Comments

@jtdLab
Copy link
Owner

jtdLab commented Aug 26, 2023

add this to bootstrap.dart in platform root package

  FlutterError.onError = (details) {
    logger.error(details.exceptionAsString(), details.exception, details.stack);
  };

Development mode should be handled with care as good stacktrace is required for a good debugging/dev expericene.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant