Additional data can also be attached to breadcrumbs by providing the optional metadata parameter. leaveBreadcrumb ( 'Button clicked' )īugsnag will keep track of the time and order of the breadcrumbs and show them on your dashboard. You can use the leaveBreadcrumb method to log potentially useful events in your own applications: Bugsnag. User navigation (when enabled through our navigation plugins).Screenshot capture (not the screenshot itself).Automatically captured breadcrumbsīy default, Bugsnag captures common events including: A configurable number of breadcrumbs are attached to each error report to help diagnose what events led to the error. ![]() In order to understand what happened in your application before each error, it can be helpful to leave short log statements that we call breadcrumbs. If your user data is located in native code, you can also set this information using the setUser function on the native Bugsnag client.įor more information, see Adding user data. You can also use the FallbackComponent to display a custom error screen to your users: // Start Bugsnag first. The Bugsnag ErrorBoundary allows you to capture React render errors in your application.
0 Comments
Leave a Reply. |