Introduction:
In this article we will be seeing how to enable developer dashboard in
SharePoint 2010. Developer Dashboard is a new feature in SharePoint 2010 which
is used to provide additional performance and tracing information. By default,
developer dashboard is disabled. We can enable using powershell or using
SharePoint object model.
Enable Developer Dashboard:
- Using SharePoint object model
- Using powershell
Using SharePoint object model:
SPDeveloperDashboardLevel Enumerator:
It is used to specify behavior aspects of the developer dashboard. Behavior is
either off, on, or On Demand.
Off Dashboard feature is disabled.
OnDemand Dashboard feature is available on request.
On Dashboard feature is enabled.
Using powershell:
"On" Mode:
$contentService=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService.DeveloperDashboardSettings.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On
$contentService.DeveloperDashboardSettings.RequiredPermissions = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask
$contentService.DeveloperDashboardSettings.Update()
"Off" Mode:
$contentService=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService.DeveloperDashboardSettings.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::Off
$contentService.DeveloperDashboardSettings.RequiredPermissions = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask
$contentService.DeveloperDashboardSettings.Update()
"OnDemand" Mode:
$contentService=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$contentService.DeveloperDashboardSettings.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
$contentService.DeveloperDashboardSettings.RequiredPermissions = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask
$contentService.DeveloperDashboardSettings.Update()