Wednesday, March 7, 2018

Enabling Developer Dashboard in sharepoint 2013

Developer dash board is one the great feature introduced by Microsoft from sharepoint 2010 version, it got extended in sharepoint 2013 with little bit changes.

Now in this post I will explain how to enable Developer Dashboard in sharepoint 2013 environment.

Below are steps to enable:

1) Make sure Usage and Health data collection service is enabled or not, if its enabled then you can continue with step 3 else need to follow step 2

2) Enable Usage and Health data collection service please refer the msdn link

https://technet.microsoft.com/en-us/library/ee663480.aspx

3) There is no UI steps available to enable Developer Dashboard in sharepoint, so we need to depend only on PowerShell scripts:

4) Open sharepoint 2013 management shell as admin user

5) Run the following code snippet to enable the developer dashboard

$content = ([Microsoft.SharePoint.Administration.SPWebService]::ContentService)
$dashboardsetting =$content.DeveloperDashboardSettings
$dashboardsetting.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On
$dashboardsetting.Update() 


6) This will enable the developer dash board on the sharepoint site

7) The above steps work only for sites which are opened with intranet site with authenticated users, it doesn't work for anonymous web site. By default developer dashboard will be enabled for authenticated users  with RequiredPermissions set to AddAndCustomizePages

Note: After executing the step 5 if we enter $dashboardsetting in powershell console it will display the all the configuration done with Developer dashboard

8) To enable Developer dashboard in anonymous site we need to run the below script to make it available

$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$dashboardSettings = $contentService.DeveloperDashboardSettings
$dashboardSettings.RequiredPermissions = [Microsoft.SharePoint.SPBasePermissions]::EmptyMask
$dashboardSettings.Update()


Note:
a) Make sure Developer Dashboard html tags are available in the master page(in case if the master page is customized)
b) Usage and Health data collection service is up and running
c) I have verified developer dashboard for https site also with anonymous users(internet facing site) and its working without any issues.



No comments:

Post a Comment