sentry-unity
sentry-unity copied to clipboard
Support IL2CPP line numbers when using `Cysharp`
trafficstars
Exceptions originating from Cysharp fail to have line numbers. The IL2CPP event processor reports their instruction address as 0x0.
I.e.
using Cysharp.Threading.Tasks;
public async void DoAThingAsync()
{
Debug.Log("Attempting to do a thing");
await UniTask.Delay(TimeSpan.FromSeconds(1)); // Asynchronous delay
Debug.Log("Actually doing a thing.");
throw new Exception("What what?");
}