Developer Toolbar - Share Point 2010

A new addition to SharePoint 2010 is the Developer Toolbar. The easiest way to understand what the Developer Toolbar does is to see it in action. At the time of writing, the only way to activate the Developer Dashboard is via PowerShell or the STSADM tool. Since STSADM is being phased out as a mechanism for managing SharePoint, we’ll use the PowerShell method:

  1. From the Start menu, choose SharePoint 2010 Management Shell from the Microsoft SharePoint 2010 Products menu.
  2. Type the following PowerShell commands at the prompt:
  3. Using this script, we’re setting the Developer Dashboard to OnDemand mode; other possible options are On and Off.

  4. Now if we navigate to the demo site that we created earlier, we can see that a new icon has appeared in the upper-right corner, as shown next. Clicking this icon enables or disables the Developer Dashboard.

Developer Toolbar
With the Developer Dashboard enabled, you can see that every page now has additional information appended to the bottom, as shown. You can use this information to track errors that have occurred during page processing as well as resource usage and other important metrics.
Developer Toolbar
Another important feature of the Developer Dashboard is that it allows developers to write custom tracing information to it. Although I mentioned that DebugView is an important tool for debugging complex applications, when it comes to debugging and diagnosing problems at the user-interface level, the Developer Dashboard provides much more information and is therefore a better solution. Where DebugView proves useful is indebugging issues that don’t occur in the user interface—for example, issues in workflows or asynchronous event handlers (more on these in later chapters).

Monitoring information from code that is wrapped within a SPMonitoredScope object, as shown, is written to the ULS logs as well as being visible from the Developer Dashboard. As a result, using SPMonitoredScope is a good way to generate tracing information that can be used by administrators to troubleshoot problems on a production system.
using (new SPMonitoredScope("My monitored scope"))

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Share Point 2010 Topics