-
-
Notifications
You must be signed in to change notification settings - Fork 50
Debugging nuget packages
sujeffreyl edited this page Dec 10, 2020
·
4 revisions
If the nuget package provides a symbol package it's possible to debug into the nuget package.
You'll have to enable Source Link support in VS (https://docs.microsoft.com/en-us/visualstudio/debugger/general-debugging-options-dialog-box?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(VS.ToolsOptionsPages.Debugger.General)%26rd%3Dtrue&view=vs-2019)
Or, when you step into code from these packages, Visual Studio may prompt you if you want to load the symbols. See below:
Possible useful links:
- https://devblogs.microsoft.com/nuget/improved-package-debugging-experience-with-the-nuget-org-symbol-server/#consume-snupkg-from-nuget-org-in-visual-studio
- https://capgemini.github.io/development/debugging-into-a-nuget-package/
- https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink