

Select “Sitecore.Kernel” in the Modules Tab and Click “Load Symbols” to actually load the symbols so that the GetDatabase can be debugged.

Now click on Breakpoints and add the function name as GetDatabase (change this to a function that you would like to debug) as shown below:Īfter the debugger is attached, Choose Modules from Debug -> Windows as shown below to see the symbols loaded Now go to Debug -> Windows -> Breakpoints Now go to Tools -> Options -> Debuggin -> Symbols and add the Symbol server url copied above.I’m actually using the MVP Solution from the docker examples repo but any project will do) Either create a new project or load any existing project (there won’t be any code change as we are only trying to debug existing Sitecore dll.Now let’s use this in a Visual Studio Project Symbol Server can be started in 2 ways: or Click on “copy to clipboard” to copy the url of the Symbol Server. It’s best to choose “Assemblies opened in the Assmeby Explorer” as then we are sure that current version of the DLL symbols are downloaded. In the DotPeek Menu bar, Select Tools -> Options -> Symbol Server from the left pane as shown: Once downloaded, these symbols can then be loaded in a Visual Studio Debugging environment for debugging purpose.

Net developers stores debugging information about the dll to be debugged) at a temporary location. DotPeek generates and downloads the symbols or pdb files (known to most. Okay a little information about how DotPeek allows us to debug Sitecore or any. DotPeek is free so there are no license costs. Download and Install DotPeek if you haven’t already.As an example, let’s try to debug GetDatabase method which is present in namespace Sitecore.Data in the class Database in the Sitecore DLL Sitecore.Kernel (yeah the most famous and important one) I’ll get straight to the point on how can we debug Sitecore dll. We can actually debug these Sitecore Dlls instead of just peeking into them. This can be beneficial when trying to get to the root of the problem if we are absolutely sure that the problem is not in the code we wrote. Net dlls too of course) and get an insight on what’s in the hood. DotPeek from JetBrains is a wonderful tool to see through code from Sitecore Dlls (and.
