How to Enable the SharePoint 2010/2013 Developer Dashboard

Posted: August 15, 2014 in SharePoint2013

Introduction

There are several ways to enable the Developer Dashboard in SharePoint 2010 and 2013. I always prefer the PowerShell method, but for the sake of completeness I will show several options here.

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.

Enabling Developer Dashboard

using PowerShell

  1. $devdashboard =[Microsoft.SharePoint.Administration.SPWebService]::ContentService.
    DeveloperDashboardSettings;
  2. $devdashboard.DisplayLevel = ‘OnDemand’;
  3. $devdashboard.Update()
  4. Write-Host (“Developer Dashboard Level: “ + $contentService.DeveloperDashboardSettings.DisplayLevel)

Program code

  1. Enabling Developer Dashboard using Object Model
  2. SPWebService service = SPWebService.ContentService;
  3. service.DeveloperDashboardSettings.DisplayLevel=Microsoft.SharePoint.Administration.
    SPDeveloperDashboardLevel.OnDemand;
  4. service.Update();

Using STSADM

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

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 code snippets above. This operation requires a Farm Administrator permission. Make sure you have farm admin access before enabling/disabling the developer dashboard.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s