sentry-unity
sentry-unity copied to clipboard
Add option to use Ben.Demystifier for cleaner and less confusing stack traces
Would be nice to clean up stacktraces using this library (or you guys make plugin architecture for us to override stacktraces?)
That's an interesting suggestion, thanks for raising this! Especially since the .NET SDK already has Ben.Demystifier as a submodule. I'll look into how that would work and get back to you.
I think I stumbled upon the reason why we're not already doing that: https://github.com/getsentry/sentry-unity/blob/248ca0c4d7ddf6d24185bad92825d036795182b6/src/Sentry.Unity/SentryUnityOptions.cs#L113
Backtrace a unity owned product is using it. Maybe that comment is old?Get Outlook for Android
You could try to use the ScriptableConfig to change the StacktraceMode from StackTraceMode.Original
to Enhanced
(which is the default for the .NET SDK). We would expect this to work on Mono. Let us know what you get on your targetplatform - maybe we can reconsider our approach.
@oddgames-david did you end up setting StackTraceMode.Enhanced
mode with mono? What was your experience with the stack traces?