[bundle] Include mono's debug symbols #513
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Microsoft has (several?) symbol servers, which is a repository
"somewhere" which contains debug symbols, so that when a stack trace
containing e.g. BCL stack frames is sent to Microsoft, there is a way
to correlate that back to filename and line number source for further
investigation.
Xamarin.Android has not partaken in this mechanism, in large part
because we did most of our building on Linux and macOS machines which
generate
.mdbdebug symbols, while symbol servers require.pdb.That constraint is now behind us; with 76be1fb and the use of
Mono 4.9 for builds, our builds now generate Portable
.pdbfiles,which should (hopefully) be usable on Microsoft's symbol servers.
However, to transmit them to Microsoft's servers, we need to actually
retain them. At present, they're not: because of
bundle*.zipuse,the
mscorlib.dllthat we include in the final product may have beenbuilt much earlier than the rest of the product, and we don't have any
other mechanism to retain the
mscorlib.pdbfile.Let's change that: update
mono-runtimes.targetsso that the createddebug symbol files are included in the produced
bundle*.zip, andbump the corresponding
$(XABundleFileName)version number. This willensure that we retain the debug symbols for our BCL assemblies,
allowing us to actually have something to upload.