Open kensykora opened 5 years ago
For those on Xamarin (https://github.com/getsentry/sentry-xamarin) MAUI (https://github.com/getsentry/sentry-dotnet) Or just native Android/iOS apps with .NET, you can get line numbers in .NET stack traces with Sentry:
https://docs.sentry.io/platforms/dotnet/guides/maui/#overview-of-the-features
You need to upload PDBs. It's automatic if you configure the org-slug/auth token via msbuild or env vars, or CLI args: https://docs.sentry.io/platforms/dotnet/guides/maui/configuration/msbuild/
Also support native crashes on both iOS and Android. Code is here: https://github.com/getsentry/sentry-dotnet
I use it on this project: https://github.com/getsentry/symbol-collector
These are release builds in production:
Disclaimer: I was the maintainer of the Sentry .NET SDK
For anybody still hoping this gets fixed, App Center is officially being retired.
https://learn.microsoft.com/en-us/appcenter/retirement
And Sentry continues to support line numbers for all types of .NET app including mobile:
Crashes and errors that are collected today are really nice, but they aren't including line numbers. So when I see a crash with a stacktrace like this, it's really difficult to pinpoint exactly where the exception occurred. At best I can make an educated guess. Especially tricky when it's a very low frequency crash that we haven't been able to reproduce yet
I can't think of any alternative way to achieve this behavior. We have considered shipping log data with the crashes to supplement but that only goes so far.