Skip to content

stack_trace : Is there any potential issue with wrapping my app in Chain.capture() #2140

@FlutterByte98

Description

@FlutterByte98

Hi all!

I'm working on a Flutter app and want to improve my error reporting, especially for async errors. I came across the stack_trace package and its "Chain.capture()" method, which seems to provide much better stack traces across async boundaries.

The usage is to wrap your app's entry point like this:

Chain.capture(() {
runApp(MyApp());
}
This looks great for debugging and error reporting, but I'm wondering: Is there any potential downside or performance impact to wrapping my entire app in Chain.capture?

Would love to hear from anyone.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions