sentry-unity
sentry-unity copied to clipboard
Support line numbers for Android on Mono
trafficstars
My understanding is that presently we display line numbers in Unity for IL2CPP, but not for Mono.
With recent improvements to Sentry .NET, we should now be able to do this using the AndroidAssemblyReader.
This is already working well for .NET Android, MAUI, and Xamarin. (See https://github.com/getsentry/sentry-xamarin/pull/135)
I believe it would require only a change to the path that is searched within the apk by the AndroidAssemblyDirectoryReader (here). It currently searches /assemblies, but for Unity it would need to search /assets/bin/Data/Managed also.