Setting Up Source Debugging in VS
First, make sure source debugging external dependencies is enabled:
- Make sure "Debug Just My Code" is disabled, in Tools -> Options -> Debugging.
Stride builds the PDB files right into the normal
.nupkg files. When debugging a public release, SourceLink should cause Visual Studio to download source files right from github when stepping into them.
Because of the way Visual Studio tracks down source files while stepping, one can't Goto-Definition for types in dependencies in VS Community. The workaround is to first step into the dependency to get the source loaded. Alternatively, one can pay for .NET Reflector, VSPro, or Resharper, which fix this in Visual Studio.
One day it might be nice to support
.source.nupkg files, so the base packages could be smaller. However, it's not a big deal.
- Creating SourceLens symbol packages
- Source Link and .NET libraries | Microsoft Docs
- How to Debug a .NET Core NuGet Package