BTemplates.com

About This Blog

Powered by Blogger.

Search This Blog

Tuesday, July 23, 2013

How to enable Developer Dashoard In SharePoint 2010


The Developer Dashboard appears at the bottom of a page and allows site owners and up to view the call stack, database query times, exception information in error messages, and loading events for web parts during page rendering. All of these allow you to pinpoint the bottleneck within your page and to quickly focus on the resolution.

 The Developer Dashboard can be enabled via STSADM or PowerShell. This is one of the rare cases where the command in STSADM is shorter than PowerShell. The recommended property value is OnDemand, which provides you the ability to toggle the dashboard on and off
1.    STSADM
  • stsadm -o setproperty -pn developer-dashboard -pv on
  • stsadm -o setproperty -pn developer-dashboard -pv off
  • stsadm -o setproperty -pn developer-dashboard -pv OnDemand (recommended)
2.     PowerShell
$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ddsetting=$svc.DeveloperDashboardSettings
$ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
$ddsetting.Update()

An icon displays in the top right of the page when the Developer Dashboard is set to OnDemand — click this to toggle the dashboard on and off.

    
EXAMPLE OF DEVELOPER DASHBOARD

0 comments:

Post a Comment