Skip to content

Support IL2CPP line numbers when using Cysharp #1515

@bitsandfoxes

Description

@bitsandfoxes

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?");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or requestWont FixThis will not be worked on

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions