sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Support line numbers for Android on Mono

Open mattjohnsonpint opened this issue 2 years ago • 0 comments
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.

image

Test.apk.zip

mattjohnsonpint avatar Feb 01 '23 18:02 mattjohnsonpint