Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions platform-includes/capture-error/apple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ do {

## Capturing Uncaught Exceptions

<Note>

The SDK can't install the uncaught exception handler if a debugger is attached. To test these locally, ensure you've unchecked the "Debug executable" option in your app's Xcode scheme's Run action.

</Note>

By default, macOS applications do not crash whenever an uncaught exception occurs. To enable this with Sentry:

1. Open the application's `Info.plist` file
Expand All @@ -119,4 +125,6 @@ func applicationDidFinishLaunching(_ aNotification: Notification) {
}
```

Once you have configured your application to crash whenever an uncaught exception occurs, the Apple SDK will capture those automatically. You don't need to manually call `captureException`.

</PlatformSection>
Loading