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

Support IL2CPP line numbers when using `Cysharp`

Open bitsandfoxes opened this issue 1 year ago • 0 comments
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?");
}

bitsandfoxes avatar Dec 12 '23 14:12 bitsandfoxes