> For the complete documentation index, see [llms.txt](https://docs.inspector.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inspector.dev/guides/laravel/exception-monitoring.md).

# Exception Monitoring

Laravel error tracking

{% hint style="info" %}
**By default, every unhandled exception will be reported automatically to be sure you'll be alerted for unpredictable errors in real time.**
{% endhint %}

Inspector allows you to report exceptions manually if you want to be aware of it, but you don't want to block the execution of your code:

```php
try {

    // Your code statements here...

} catch(LogicException $exception) {
    // Report an exception intentionally to collect diagnostics data
    inspector()->reportException($exception);
}
```

If something goes wrong in your code you will be alerted in real time in your inbox and the exception will be monitored for all subsequent occurrences.

### Exception monitoring

When an exception is detected you can read the code inside the stacktrace, and monitor its occurrences frequency for a better investigation:

![Exception details](https://2873457055-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ51SrLj6qvIRejC1XD%2F-MAWEPeOV1LTYmJr54fP%2F-MAWEXMt8Tg2LQs0RmAB%2Fex-details.png?alt=media\&token=d732be0c-5dc6-47e8-95be-de20a2615be1)

{% hint style="success" %}
Activate the AI Bug Fix to receive code change proposals for faster resolution: <https://docs.inspector.dev/concepts/ai-bug-fixer>
{% endhint %}
