Enable Developer Dashboard in SharePoint 2010 or SharePoint 2013

Enable Developer Dashboard in SharePoint 2013
InfoPath alternatives for form designing SharePoint

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.

Notice that there are the following options for the Developer Dashboard:
– On

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.

– Off
SharePoint 2010 & 2013: The Developer Dashboard will not be available

– OnDemand
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 =[Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$devdashboard.DisplayLevel = ‘OnDemand’;
$devdashboard.Update()
Write-Host (“Developer Dashboard Level: ” + $contentService.DeveloperDashboardSettings.DisplayLevel)

Enable Developer Dashboard using Object Model:

SPWebService service = SPWebService.ContentService;
service.DeveloperDashboardSettings.DisplayLevel=Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel.OnDemand;
service.Update();

Enable Developer Dashboard Using STSADM:

STSADM.exe -o setproperty -pn
developer-dashboard -pv OnDemand

Enable Developer Dashboard in SharePoint 2013
Enable Developer Dashboard in SharePoint

Conclusion:

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.

Similar SharePoint 2013 Tutorials


About Sagar Pardeshi

I am Developer working on Microsoft Technologies for the past 6+years. I am very much passionate about programming and my core skills are SharePoint, ASP.NET & C#,Jquery,Javascript,REST. I am running this blog to share my experience & learning with the community I am an MCP, MCTS .NET & Sharepoint 2010, MCPD Sharepoint 2010, and MCSD HTML 5,Sharepoint 2013 Core Solutions. I am currently working on Sharepoint 2010, MOSS 2007, Sharepoint 2013,Sharepoint 2013 App Dev, C#, ASP.NET, and SQL Server 2008.

View all posts by Sagar Pardeshi →

Leave a Reply