Fsharp: enable SourceLink for FSharp.Core.pdb

Created on 21 Sep 2018  路  3Comments  路  Source: dotnet/fsharp

Following up on #294, please enable SourceLink for the published FSharp.Core.pdb files so that we can debug into the source code just like the rest of dotnet core.

image

Area-Library Feature Improvement

Most helpful comment

We could do with this asap, stepping through F# code as C# is not fun in the debugger. Im sure people contributing to the compiler and tools find this painful too as you have to read C# code and cross reference it with the repo here to get a clear picture of what happening.

All 3 comments

We could do with this asap, stepping through F# code as C# is not fun in the debugger. Im sure people contributing to the compiler and tools find this painful too as you have to read C# code and cross reference it with the repo here to get a clear picture of what happening.

This _should_ just be a matter of adding a dependency to Microsoft.SourceLink.Github, version 1.0.0-beta2-19367-01 and setting a few additional properties in the FSharp.Core Project File (or maybe the FSharpBuild.Directory.Props, depending on conventions?):

    <!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
    <PublishRepositoryUrl>true</PublishRepositoryUrl>

    <!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
    <EmbedUntrackedSources>true</EmbedUntrackedSources>

    <!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
    <IncludeSymbols>true</IncludeSymbols>
    <SymbolPackageFormat>snupkg</SymbolPackageFormat>

I think https://github.com/dotnet/fsharp/pull/9948 should resolve this issue.

Was this page helpful?
0 / 5 - 0 ratings