Skip to content

Commit f73e1e4

Browse files
Add Android native symbols and source context to RN Debug Symbols page (#7144)
1 parent 945b9bf commit f73e1e4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/platforms/react-native/manual-setup/manual-setup.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ sentry {
110110
// you don't need to do it manually.
111111
// Default is disabled.
112112
uploadNativeSymbols = true
113+
114+
// Enables or disables the automatic upload of the app's native source code to Sentry.
115+
// This executes sentry-cli with the --include-sources param automatically so
116+
// you don't need to do it manually.
117+
// This option has an effect only when [uploadNativeSymbols] is enabled.
118+
// Default is disabled.
119+
includeNativeSources = true
113120
}
114121
```
115122

src/platforms/react-native/upload-debug.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ Debug symbols help provide you with readable stack traces, which Sentry displays
1010

1111
With default settings, complete stack traces are available in your Java/Kotlin error, out of the box, unless you use [enableProguardInReleaseBuilds](https://reactnative.dev/docs/signed-apk-android#enabling-proguard-to-reduce-the-size-of-the-apk-optional). In this case, you need to upload the ProGuard/R8 mapping files generated by the [Android Gradle Plugin](https://developer.android.com/studio/build/shrink-code#shrink-code), so Sentry can show you proper stack traces.
1212

13-
Errors raised from the native layer in Android apps require certain debug information files to be uploaded. For example, dwarf debug files need to be uploaded for an Android app with [NDK](https://developer.android.com/ndk/) support.
14-
1513
## Uploading With Sentry Gradle Plugin
1614

1715
Upload the [Android ProGuard/R8 mapping files and native symbols](/platforms/android/proguard/) by the recommended method of using our Gradle integration.
1816

17+
Errors raised from the native layer in Android apps require certain debug information files to be uploaded. For example, DWARF debug files need to be uploaded for an Android app with [NDK](https://developer.android.com/ndk/) support.
18+
19+
To upload native symbols for React Native Android builds, use the Sentry Gradle Plugin's [`uploadNativeSymbols` option](/platforms/react-native/manual-setup/manual-setup/#enable-sentry-agp).
20+
21+
To enable [Source Context](/platforms/android/data-management/debug-files/source-context/) use the [`includeSourceContext`](/platforms/react-native/manual-setup/manual-setup/#enable-sentry-agp) option.
22+
1923
## Uploading With Xcode
2024

2125
To upload native iOS debug symbols, set up a Run Script build phase for uploading debug symbols to Sentry with the Sentry CLI. You can find documentation for this on the [Manual Configuration](/platforms/react-native/manual-setup/manual-setup/#upload-debug-symbols-to-sentry) page.

0 commit comments

Comments
 (0)