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:
namespace EnableDeveloperDashboard { class Program { static void Main(string[] args) { SPWebService contentService = SPWebService.ContentService; contentService.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.OnDemand; contentService.DeveloperDashboardSettings.RequiredPermissions = SPBasePermissions.EmptyMask; contentService.DeveloperDashboardSettings.Update(); } } }
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()
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: