Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable line numbers in stack traces #462

Closed
danim-hub opened this issue Feb 12, 2019 — with docs.microsoft.com · 27 comments
Closed

How to enable line numbers in stack traces #462

danim-hub opened this issue Feb 12, 2019 — with docs.microsoft.com · 27 comments

Comments

Copy link
Contributor

This document does not specify how to show line numbers in stack traces. I understand release builds comes with no debugging information, but I think these releases can be "symbolicated" in iOS, and probably there is a similar verb for Android. Please comment if it is possible to do this, and it will be really appreciated if you update this document accordingly.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@jwargo
Copy link
Contributor

jwargo commented Feb 12, 2019

@danim-hub I'll have the team take a look at doing an update.

@winnie
Copy link
Contributor

winnie commented Feb 14, 2019

Hi @danim-hub,

We don't currently display line numbers in Xamarin stack traces. I'm actually in conversation with the Xamarin team as we think this is a limitation on the Xamarin side since we don’t process any Xamarin logs and line numbers are only available in debug builds of Xamarin apps.

In the meantime, I've noted this as a feature request to help our team prioritize this in the future. I'll keep you posted when I hear back and have a workaround/solution. Thanks for your patience!

@winnie winnie added enhancement New feature or request Feature Request and removed enhancement New feature or request labels Feb 14, 2019
@jwargo jwargo closed this as completed Feb 22, 2019
@thedee
Copy link

thedee commented Apr 23, 2019

Hi @danim-hub,

We don't currently display line numbers in Xamarin stack traces. I'm actually in conversation with the Xamarin team as we think this is a limitation on the Xamarin side since we don’t process any Xamarin logs and line numbers are only available in debug builds of Xamarin apps.

In the meantime, I've noted this as a feature request to help our team prioritize this in the future. I'll keep you posted when I hear back and have a workaround/solution. Thanks for your patience!

Anything new on this? I am using Xamarin and AppCenter and when things get logged there are no lines #'s in the exception log.

@amrosama2020
Copy link

[+]

@winnie
Copy link
Contributor

winnie commented Sep 11, 2019

Hey there - apologies for the delay. No updates on this yet. We have an item on our backlog to investigate this some more but unfortunately I don't have an ETA. I'll post here with updates.

Thanks!

@amrosama2020
Copy link

@winnieli1 Thanks a lot for the update.

@stiansun
Copy link

stiansun commented Oct 8, 2019

Following! This feature would definately be at large help.

@SkyeHoefling
Copy link

This would be a huge benefit to us as well

@sandorfr
Copy link

It's weird the official screenshots include the line numbers. So I guess it must boil down to uploading some files like pdb. It just lacks some guidance. Why did you close this @jwargo ?

@jwargo
Copy link
Contributor

jwargo commented Oct 14, 2019

@sandorfr because @winnieli1 responded with a direct answer, I assumed that was enough. If you want it open, please do so.

@breyed
Copy link
Contributor

breyed commented Nov 9, 2019

Generally, responding with a direct answer isn't reason to close an issue. The issue has to have reached a state of resolution, e.g. fixed, not applicable, etc. Since this issue is on the docs specifically, it represents the lack of documentation regarding enabling line numbers. The docs should probably be updated to mention the that the stack traces don't support showing line numbers, since that's a common feature with stack traces. This issue should stay open until that doc update is made.

Separately, there's another issue about actually implementing line numbers (not just documenting). That issue is in the private backlog that @winnieli1 mentioned and presumably is still open. Unfortunately, there's no transparency into the private backlog issue.

@AhmedAdelAlDesouqy
Copy link

Any update about this issue?
I'm using App Center with Xamarin.Android and there are still no line numbers in the crash reports :(

@danielmeza
Copy link

Without line number this feature loose power and, this have reach a complete year and will be great if we get some update, like a link to point the discussion to the right point or to track the feature implementation.

@shehrozeee
Copy link

Still looking for line number

@fgiacomelli
Copy link

Same request for me

@danielmeza
Copy link

Shall we wait until .net 5 comes to Xamarin in order to get this feature? If yes I can wait 👯

@Mikilll94
Copy link

Mikilll94 commented May 8, 2020

Same issue here:
In release mode, line numbers are not shown in stack traces on both iOS and Android.

In debug mode, line numbers are shown.

@catlan
Copy link

catlan commented May 9, 2020

See open issue on App Center #165 and Xamarin Android #3657.

@fgiacomelli
Copy link

I obtained lines number using mono-symbolicate tool, enabling debug info and saving pdb and dll of each build. But it's a very useful information, it would be great if App Center should be able to do it automatically

@danielmeza
Copy link

@fgiacomelli question. The dll that you publish with the app has the debug info enabled or you enabled it just to get the pdb and then publish a dll version without debug support? I has because enable debug infrastructure affect the performance.

@fgiacomelli
Copy link

at this time we are publishing a version with full debug info enabled; performances are not really worsened and for us is more important being able to fix crashes quickly.
@danielmeza did you tried to use a stacktrace produced from a release version (without pdb) with pdb files generated from the same version built with debug info enabled? I'm not sure it can works, but if it do, it would be great

@danielmeza
Copy link

@fgiacomelli No, I have not test yet I don't know how to put the pdb in the apk to be distrubuted to production! even when I deploy the app In debug mode when I use adb logcat to see the log the stack trace doesn't show the line number info.

@joncortez
Copy link

at this time we are publishing a version with full debug info enabled; performances are not really worsened and for us is more important being able to fix crashes quickly.
@danielmeza did you tried to use a stacktrace produced from a release version (without pdb) with pdb files generated from the same version built with debug info enabled? I'm not sure it can works, but if it do, it would be great

What settings in your Android project did you have to set and the values to enable correct generation of .mSYM on Release builds? I had MonoSymbolArchive = true, DebugSymbols = true, and DebugType = PdbOnly. It generated the .mSYM files and when I run mono-symbolicate, I am getting IndexOutOfRangeException error when it is trying to parse a raw crash report from AppCenter.

@nrobeson
Copy link

Still waiting for line numbers.

@elielson-anjos
Copy link

any news on this?

@ali-h2010
Copy link

Any update on this?
we still can't see any line numbers on 2023?

@bruno-garcia
Copy link

bruno-garcia commented Jun 28, 2023

Sentry has line numbers for .NET PDBs: getsentry/sentry-dotnet#1740
You can configure your Sentry project (slug and auth token) in MSBuild: https://docs.sentry.io/platforms/dotnet/configuration/msbuild/ and symbols are auto uploaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests