There are several ways to enable the developer dashboard in SharePoint 2010 and SharePoint 2013. I always prefer the PowerShell method, but for the sake of completeness I will show several options here. We will see how we can enable developer dashboard using PowerShell, using object model and using stsadm.
New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 Subscription & Try out all the features
SharePoint 2016 Tutorial Contents
Notice that there are the following options for the Developer Dashboard:
SharePoint 2010: The Developer Dashboard will always be rendered at the bottom of each page
SharePoint 2013: The Developer Dashboard icon will always be displayed at the top right corner. It will not be appended to each page.
SharePoint 2010 & 2013: The Developer Dashboard will not be available
SharePoint 2010: The Developer Dashboard will only be appended to a page after clicking on the icon in the ribbon
SharePoint 2013: This mode is not available in 2013 since it reflects the behavior of On now
Enable Developer Dashboard using PowerShell:
$devdashboard.DisplayLevel = ‘OnDemand’;
Write-Host (“Developer Dashboard Level: ” + $contentService.DeveloperDashboardSettings.DisplayLevel)
Enable Developer Dashboard using Object Model:
SPWebService service = SPWebService.ContentService;
Enable Developer Dashboard Using STSADM:
STSADM.exe -o setproperty -pn
developer-dashboard -pv OnDemand
The Developer Dashboard can be disabled by setting the display level value to “Off”. As needed the display level can be set to “On”, “Off” or “OnDemand” in the above code snippets. This operation requires a farm administrator permission. Make sure you have farm admin access before enabling/disabling developer dashboard.
FREE SHAREPOINT 2019 PDF
(Installation & Features)