Debugging with SourceLink
Information on SourceLink and how to use it to debug the Umbraco CMS source code
Microsoft and Visual Studio have introduced a new debugging technology called 'SourceLink' that enables source code debugging of certain .NET assemblies from NuGet. This feature has been enabled to allow developers to step into the native Umbraco CMS source code.
Enabling SourceLink in Visual Studio 2017 & 2019
Navigate to Tools -> Options -> Debugging -> General.
In the General window, uncheck
Enable Just My Code
option and checkEnable Source Link support
option.Click OK to save the changes.
What is SourceLink?
To read about SourceLink, you can take a look at the following websites:
Working with SourceLink
Create a new
.NET 5.0
Framework blank/empty website.Install the latest Umbraco CMS 9.0+ Nuget Packages from Nuget.org
Create an IComposer or similar code in your new site/SLN that you want to F11/Step Into. Example Code Snippet to try with SourceLink
How far can you
F11
, also known asStep Into
, and go down the rabbit hole of the Umbraco CMS source code?
Example Code Snippet to try with SourceLink
Last updated