Forum Discussion
Nwagner2225
Apr 12, 2022Copper Contributor
WinForms App C# Stack trace has no line numbers
I have a C# project built with Visual Studio 2019. In the Build options I have selected "PDB-only" for Debugging information (but tried also "Full"). When creating App Packages I check "Include publ...
Nwagner2225
Apr 27, 2022Copper Contributor
To avoid any misunderstanding: you are talking about the setting "Debugging information" in screen "Advanced Build Settings" of Project properties, right?
I tried all the settings there. Using "Full" or "PDB only" a PDB-file is created and I get line numbers when I start the program from Release folder - but not when I start it from the installed MSIX-package. Using "Embedded" or "Portable" I even do not get line numbers when I start the program from Release folder.
According to my understanding, it is not a problem of building the program. It is a problem, that the PDB file - allthough created - does not get installed with the MSIX-package.
I tried all the settings there. Using "Full" or "PDB only" a PDB-file is created and I get line numbers when I start the program from Release folder - but not when I start it from the installed MSIX-package. Using "Embedded" or "Portable" I even do not get line numbers when I start the program from Release folder.
According to my understanding, it is not a problem of building the program. It is a problem, that the PDB file - allthough created - does not get installed with the MSIX-package.
Aditi_Narvekar
Microsoft
May 11, 2022Nwagner2225 basically this is by design. Store does not like packages with pdbs for policy.
per docs here https://docs.microsoft.com/en-us/windows/msix/package/packaging-uwp-apps
Symbols for appx package are compressed as .appxsym(as part of .appxupload) and will only be used in Partner center for crash analysis
- Nwagner2225May 11, 2022Copper Contributor@ Aditi_Narvekar thanks for this information.
Currently I am using Microsoft AppCenter for crash reporting - and there I do not get the line numbers. In Partner center I see that there was a crash, but without any details, just "Unknown". If I remove AppCenter, will I get more details in Partner center? In general I like AppCenter, because it helps tracking the errors. But if I can get line numbers in Partner center ...- Aditi_NarvekarMay 19, 2022
Microsoft
I don't believe that will help. But maybe you can try it- Nwagner2225Jun 06, 2022Copper ContributorI tried it now: it did not help. After removing AppCenter there is still nothing more than "Unknown" in Partner center.