Skip to content

Commit cc59fef

Browse files
authored
note on unity force crash function (#13332)
1 parent f19ebbb commit cc59fef

File tree

1 file changed

+6
-0
lines changed
  • docs/platforms/unity/troubleshooting

1 file changed

+6
-0
lines changed

docs/platforms/unity/troubleshooting/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,9 @@ In order to send events to Sentry, you will need to activate the InternetClient
6666
### Mono JIT stack trace is incomplete on crashes
6767

6868
This is a [known limitation](https://github.com/getsentry/sentry-unity/issues/884#issuecomment-1233035296) of the Mono JIT scripting backend, resulting from the native code not being able to see the actual generated code at the time of a crash. There are no debug files we can use to provide more information to stack traces since all code is generated when running the managed code. Using the IL2CPP scripting backend may provide more information, if that's an option for you.
69+
70+
### Sentry didn't capture Unity's test/helper function ForceCrash
71+
72+
Unity provides a function to test crashes called `UnityEngine.Diagnostics.Utils.ForceCrash()`. The Sentry SDK subscribes to the signal handlers and captures **all signals** received by it.
73+
But the result of that function doesn't get invoke our callback.
74+
Outside of this helper funciton, Sentry is unaware of any **real world** crash type that isn't invoking our signal handlers.

0 commit comments

Comments
 (0)