Capture your First Error
Now that the Demo App is up and running on your local environment integrated with the Sentry SDK, you’re ready to generate the first error.
Step 1: Capture your first event
Launch the demo app by opening the localhost link in your browser
Open the browser’s Console to verify that an error has occurred
Click on any of the Buy! buttons to add products to your shopping cart
Click on the Checkout button on the left panel to generate an error
- An error message Something went wrong displays in the app
- The error appears in the browser console
An alert sent to your email address configured on Sentry.io notifying you about an error that occurred in your app
Step 2: Handle the error
Go to your email inbox and open the email notification from Sentry
View on Sentryto view the full details and context of this error in your Sentry account
Note: Sentry aggregates similar errors (events) into one Issue
Scroll down to the
- Sentry can un-minify the code back to its readable form and display source (code) context lines in each stack frame, which is covered in the next section.