Skip to content

Commit 85cc6c6

Browse files
impr(apple): Uncaught NSExceptions on macOS (#11529)
Mention that users don't need to manually call captureException for uncaught NSExceptions on macOS when configured correctly.
1 parent 2698cd1 commit 85cc6c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

platform-includes/capture-error/apple.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ do {
9797

9898
## Capturing Uncaught Exceptions
9999

100+
<Note>
101+
102+
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.
103+
104+
</Note>
105+
100106
By default, macOS applications do not crash whenever an uncaught exception occurs. To enable this with Sentry:
101107

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

128+
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`.
129+
122130
</PlatformSection>

0 commit comments

Comments
 (0)