Developer Dashboard in SharePoint

Leave a Comment
Hi all,

below post related to Developer Dashboard in SP.

Developer Dashboard:

The developer dashboard is a perfect tool for anyone who wants a quick way to access information about what goes on while rendering a page in SharePoint.
It contains information about Web Parts, events, DB calls and a  lot of information.

Activation:
Developer Dashboard is a utility that is available in all SharePoint 2010 and above versions, and can be enabled in a following different ways:
  1. PowerShell
  2. STSADM.exe
  3. SharePoint Object Model (API’s)

using Powershell:
$devdash = 
Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings; 
$devdash.DisplayLevel = ‘On’; 
$devdash.TraceEnabled = $true; 
$devdash.Update()

using STSADM.EXE :
STSADM.EXE -o setproperty -pn developer-dashboard -pv on

using the SharePoint Object Model:
using Microsoft.SharePoint.Administration;
SPWebService svc = SPContext.Current.Site.WebApplication.WebService; 
svc.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.Off; 
svc.DeveloperDashboardSettings.Update();

Developer Dashboard Display Modes:
On - When enabled in On mode, the Dashboard is viewable on all pages that use the default master page.
Off - Disable Developer Dashboard
OnDemand - When the Developer Dashboard is set to OnDemand mode, an icon is displayed on the top right side of the page.This icon allows the user to toggle the Dashboard on and off.

NOTE:  Now in Share Point 2013 version you will get only two options ON/OFF.

Developer Dashboard in Share Point 2013.


Running in separate window to avoid affecting rendering of actual page

  1. Detailed request information per page with chant view
  2. Dedicated tab for ULS log entries for particular request
  3. Additional detailed information included for request analyzing
  4. Works by using dedicated WCF service (diagnosticsdata.svc)
  5. You can enable (On) it or disable it (Off) by using  Powershell [Ondemand option is deprecated in SharePoint 2013]
  6. Turn Off by default
  7. Depends on "Usage and Health Data Collection Service Application" so make sure this service is created [Make sure Its job Timers are running]
Developer Dashboard in SP 2013.

Related Post

0 comments:

Post a Comment