Not seeing the Developer Dashboard?

We recently needed to enable the Developer Dashboard on a client site in order to debug an issue with one of their webparts. The client turned the ‘OnDemand’ method of displaying the Dashboard on with stsadm:

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

However the toggle icon never appeared in the page. Examining the master page it was seen that the toggle control had been removed from the page layout. We were fortunate that the target content control for the dashboard had not been removed, so we investigated how the toggle for the dashboard actually worked.

Examining the mechanism that is used to enable the dashboard from the client when OnDemand is set; it was found that the button simply sets a cookie; therefore with a little bit of mungery we were able to inject that cookie in to the browser, and enable the dashboard when the page was refreshed.

In order to do this you’ll need either Google Chrome, or Firefox with GreaseMonkey installed on your machine.

Once you have either of these, go and grab this script, accept and install it as an extension.

http://blog.krakenstein.net/releases/userscripts/179-greasemonkey-cookie-injector-mod-ff-chrome.html

Load the homepage in Chrome/Firefox, and hit alt-c. The cookie injection box will appear. Put the following in the box which appears:

WSS_DeveloperDashboard=true

Reload the page and the dev dashboard will be visible to you.

Leave a Reply