Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

    Advertisements
  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand
  • Advertisements

Posts Tagged ‘developer dashboard’

New Developer Dashboard in SharePoint 2013

Posted by Paul on March 17, 2014

In this article we can explore the new Developer Dashboard in SharePoint 2013.

What is Developer Dashboard?

Developer Dashboard is an Instrumentation Framework. It allows us to trace request, SQL queries, and ULS logs within the browser.

The URL for accessing Developer Dashboard is:

http://server/_layouts/15/devdash.aspx

Following is the screen shot of the latest Developer Dashboard.

image

How to enable Developer Dashboard?

By default the Developer Dashboard is disabled.

We have to turn it to ON state from the current OFF state. To turn it ON, open the SharePoint Command Window (In Administrative Mode) & enter the following PowerShell command.

if ((Get-PSSnapin “Microsoft.SharePoint.PowerShell” -ErrorAction SilentlyContinue) -eq $null)
{
    Add-PSSnapin “Microsoft.SharePoint.PowerShell”
}

$content = ([Microsoft.SharePoint.Administration.SPWebService]::ContentService)

$dashboardSettings =$content.DeveloperDashboardSettings

$dashboardSettings.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On

$dashboardSettings.Update()

On enabling it, we can see the Dashboard icon in default master page.

image

Please note that you can get the PowerShell Snapin Script from here:

http://www.sharepointcto.com/PowerShell/PowerShell.aspx

Instrumentation

We can click on each Request URL to view the associated Instrumentation data:

1. Server Info

2. Scopes

3. SQL

4. SPRequests

5. Asserts

6. Service Calls

7. ULS

8. Cache Calls

SQL

Using the SQL tab, we can extract the SQL associated with a request.

image

You can click on the SELECT link to see the query associated.

image

ULS

Using the ULS tab, we can extract the Unified Logging Service outputs associated with a request.

image

image

Please note in SharePoint 2010 we had the ULS integrated with the page which lead to page loading performance issues.

References

http://msdn.microsoft.com/en-us/library/office/ff512745(v=office.14).aspx

Summary

In this article we have explored New Developer Dashboard & How to enable it.

Advertisements

Posted in SharePoint, SharePoint 2013 | Tagged: , , | Leave a Comment »