Software Architecture-Sharepoint Server 2010-Developer Dashboard-Off-On-OnDemand

Microsoft has provided a tool to trace and diagnose the creation of sharepoint page via Developer Dashboard. It looks like as below:

3 Methods to enable/disable sharepoint developer dashboard are as:

1. Via c# Code in a application.

      SPDeveloperDashboardSettings settings =
        SPWebService.ContentService.DeveloperDashboardSettings;
      settings.DisplayLevel = SPDeveloperDashboardLevel.On;
      settings.TraceEnabled = true;
      settings.Update();

DisplayLevel value can be On,Off or OnDemand as per requirement.
OnDemand means that a icon will be provided at the top of page for changing the Dashboard b/w On or Off.

2. Via Powershell

$DevDashboardSettings = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$DevDashboardSettings.DisplayLevel = 'OnDemand';
$DevDashboardSettings.RequiredPermissions = 'EmptyMask';
$DevDashboardSettings.TraceEnabled = $true;
$DevDashboardsettings.Update();

DisplayLevel value can be On,Off or OnDemand as per requirement.

3. Via stsadm

STSADM –o setproperty –pn developer-dashboard –pv Off

Last parameter can be On,Off or OnDemand as per requirement.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: