SharePoint 2010: How To Enable the Developer Console - TechNet Articles - United States (English) - TechNet Wiki

 This topic is a how to.
Please keep it as clear and simple as possible. Avoid speculative discucontent-fragment page no-wrapper" id="fragment-6615">

SharePoint 2010: How To Enable the Developer Console

$consoleSettings =[Microsoft.Sharepoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings
$consoleSettings.DisplayLevel = "OnDemand"
$consoleSettings.RequiredPermissions = "EmptyMask"
$consoleSettings.TraceEnabled = $true
$consoleSettings.Update()

Short but sweet, now once you visit your SharePoint site you will see a diagnostics icon next to your username on the top bar.

In case you receive errors saying that PowerShell could not find the type Microsoft.Sharepoint.Administration.SPWebService, load the SharePoint dll using following command: 

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")



Other Languages

This article is also available in the following languages: