mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.17k stars 522 forks source link

Support for logging/tracing in the managed-native interop #2777

Open mattleibow opened 3 months ago

mattleibow commented 3 months ago

Is your feature request related to a problem?

Today there is almost no way to see why the app has crashed due to invalid interop or memory management.

Describe the solution you would like

Add some way to enable tracing to see where objects are created and why, and also to see why objects are incorrectly destroyed.

Describe alternatives you have considered

There are a few options:

Neither are great, and .NET has features so we should work using that.

Additional context

No response

Code of Conduct