What is Source Link and how does it work?
mainSource Link is a system that embeds source control metadata into symbols (PDBs), binaries, and NuGet packages. This allows developers debugging a binary (like a NuGet dependency) to automatically download and display the exact commit-specific source code from the original repository. This enables features like breakpoints and stepping into source code for arbitrary dependencies.
To provide a good debugging experience, you must:
- Include source control information in PDBs.
- Include source control information in the NuGet package manifest.
- Distribute PDBs along with your binaries.