Enabling the Developer’s Dashboard for Troubleshooting

A final topic for this chapter involves enabling the Developer’s Dashboard, which can be of assistance when troubleshooting issues with a complex list or library. The Developer’s Dashboard can be enabled via the command prompt using the stsadm tool, or through PowerShell. This tool provides a summary of the web server, database queries, web part events, and other items of interest to developers.

Follow these steps to enable the Developer’s Dashboard using the stsadm tool:

  1. From the SharePoint 2010 front-end server that houses the Central Administrator site, access the command prompt by clicking the Start button and typing cmd into the Search field. The command prompt should open.
  2. From the command prompt, navigate to the folder containing the stsadm tool if needed. Typically, this tool is located in the following folder: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14BIN.
  3. Then enter the following command:

    stsadm -o setproperty -pn developer-dashboard -pv on

  4. The message “Operation completed successfully” should result. If an error message displays, check the syntax, and replace the dashes in the code one by one, especially if the code was pasted from Word or the Internet.
  5. Now the Developer’s Dashboard is on for the farm and information should display at the bottom of all SharePoint pages (which will obviously be a nuisance for end users, so bear that in mind). Figure 22.32 shows an example.

    Figure 22.32. Sample Designer’s Dashboard information on a SharePoint 2010 page.

    image

  6. The Developer’s Dashboard can be turned off with the following command:

    stsadm -o setproperty -pn developer-dashboard -pv off

  7. Alternatively, the Developer’s Dashboard can be set to ondemand mode. In this mode, a small icon will appear in the upper-right corner of the page, and when clicked once, it will reveal the Developer’s Dashboard information at the bottom of the page; if clicked again, it will hide the data. Use this code to set the dashboard to ondemand:

    stsadm -o setproperty -pn developer-dashboard -pv ondemand

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset