Last modified at 3/15/2014 11:45 AM by Koen Zomers

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

PowerShell

The dashboard can be enabled for your SharePoint 2010 or 2013 farm by executing the following commands in a SharePoint PowerShell window:

$d = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings
$d.DisplayLevel = 'OnDemand'
$d.TraceEnabled = $true
$d.Update()

STSADM

Another option is to execute the following STSADM command. STSADM is only still provided for backwards compatibility and shouldn't be used anymore.

stsadm -o setproperty -pn developer-dashboard -pv OnDemand

Program code

If you wish to configure it through program code, use the following code snippet:

SPPerformanceMonitor pm = SPFarm.Local.PerformanceMonitor;
pm.DeveloperDashboardLevel = SPPerformanceMonitoringLevel.On;
pm.Update();

More information on how to use the dashboard can be found in the excellent article at http://www.zimmergren.net/archive/2010/12/18/sp-2010-developing-for-performance-part-1-developer-dashboard.aspx