For Visual Studio 2017 and the source code for the nuget package hosted on GitHub or BitBucket:
1) Include the full debugging information in the * .csproj file:
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> <DebugType>full</DebugType> <DebugSymbols>true</DebugSymbols> </PropertyGroup>
or right-click on the project properties, assembly, advanced settings, display debugging information - set to full.
2) To enable automatic source code loading and step-by-step execution for your nuget dll package, add the SourceLink.Create.CommandLine package to your project or manually add it to the * .csproj file:
<ItemGroup> <PackageReference Include="SourceLink.Create.CommandLine" Version="2.8.2" PrivateAssets="All" /> </ItemGroup>
More info here
3) In the tools - parameters - debugging, turn off "Include only my code" and enable "Suppress JIT optimization when loading a module (only for managed)."
After that, you can switch to methods from your nuget dll package.
source share