Follow these steps to enable the Developer’s Dashboard using the stsadm tool:
stsadm -o setproperty -pn developer-dashboard -pv on
stsadm -o setproperty -pn developer-dashboard -pv off
stsadm -o setproperty -pn developer-dashboard -pv ondemand