Skip to content

Commit 948481a

Browse files
authored
unity: il2cpp line number update (#11620)
be explicit code snippet is to disable the feature touch on symbol upload earlier on the doc
1 parent 14df0ac commit 948481a

File tree

1 file changed

+5
-3
lines changed
  • docs/platforms/unity/configuration/il2cpp

1 file changed

+5
-3
lines changed

docs/platforms/unity/configuration/il2cpp/index.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ The Sentry SDK provides line number support for IL2CPP builds for the following
1818

1919
When you build with IL2CPP, errors in your game will happen in the native code. Also, the mapping between your C# code and the generated C++ code is part of the build process and isn't shipped with your game. That means the event the Sentry SDK reports can only contain the native stack trace. To provide you with C# line numbers, the Sentry server needs to have access to that line mapping through [Debug Information Files](/platforms/unity/data-management/debug-files/).
2020

21-
This feature is enabled by default. You can opt out of it through the editor configuration window by selecting **Tools -> Sentry -> Advanced -> IL2CPP line numbers** or [programmatically](/platforms/unity/configuration/options/#programmatic-configuration).
21+
The support for line numbers in C# Exceptions with IL2CPP relies on the debug symbol upload.
22+
With the automated debug symbol upload enabled, the [Sentry SDK will upload the line mapping automatically](/platforms/unity/native-support/#debug-symbols).
23+
24+
**This feature is enabled by default**. You can opt out of it through the editor configuration window by selecting **Tools -> Sentry -> Advanced -> IL2CPP line numbers** or [programmatically](/platforms/unity/configuration/options/#programmatic-configuration).
2225

2326
```csharp
27+
// If you need to disable this feature, you can set it to 'false':
2428
options.Il2CppLineNumberSupportEnabled = false;
2529
```
2630

27-
The support for line numbers in C# Exceptions with IL2CPP relies on the debug symbol upload. With the automated debug symbol upload enabled, the [Sentry SDK will upload the line mapping automatically](/platforms/unity/native-support/#debug-symbols).
28-
2931
### Known Limitations
3032

3133
Currently, line number support is limited when programmatically subscribing to button click events via `Button.onClick.AddListener`. However, you can set up callbacks through the editor to work around this.

0 commit comments

Comments
 (0)