File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
docs/platforms/native/advanced-usage/external-crash-reporter Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments