Skip to content

Commit 4e4ce23

Browse files
authored
feat(native): external crash reporter (#15244)
1 parent ffca9d0 commit 4e4ce23

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
477 KB
Loading
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: External Crash Reporter
3+
description: "How to configure an external crash reporter with the Native SDK."
4+
sidebar_order: 2100
5+
---
6+
The Native SDK can be configured to work with an external crash reporter, which
7+
can be used to display crash information to the user, collect user feedback, or
8+
perform other actions when a crash occurs.
9+
10+
The external crash reporter is a user-defined executable, distinct from the
11+
system crash reporter, that is launched by the Native SDK upon a crash. It
12+
receives the path to the crash report as its only command-line argument and
13+
is responsible for submitting the crash report to Sentry.
14+
15+
[Sentry Desktop Crash Reporter](https://github.com/getsentry/sentry-desktop-crash-reporter)
16+
is a ready-made crash reporter reference implementation. It is a cross-platform
17+
desktop application made with [.NET](https://dot.net) and [Uno Platform](https://platform.uno/).
18+
19+
![Sentry Desktop Crash Reporter](./img/sentry-desktop-crash-reporter.png)
20+
21+
To configure the Native SDK to use an external crash reporter, set the
22+
`external_crash_reporter_path` option to the path of the external crash reporter
23+
executable when initializing the SDK:
24+
25+
```c
26+
sentry_options_t *options = sentry_options_new();
27+
sentry_options_set_external_crash_reporter_path(options, "/path/to/external_crash_reporter");
28+
/* ... */
29+
sentry_init(options);
30+
```

0 commit comments

Comments
 (0)