getsentry / sentry-unity

Development of Sentry SDK for Unity
https://docs.sentry.io/platforms/unity/
MIT License
192 stars 50 forks source link

Validate ForceCrash capturing #1627

Open bitsandfoxes opened 1 month ago

bitsandfoxes commented 1 month ago

Let's validate we correctly capture crashes coming through Utils.ForceCrash on all platforms. Let's even add a new scene just for those as users are more likely to try to crash the app through the helper function than to write their own C plugin.

The ForcedCrashCategory includes

AccessViolation
FatalError
Abort <- This one might be tricky since Unity itself is doing some Unity shenanigans there and not forwarding the crash
PureVirtualFunction