Forked from here (http://wordpress.org/plugins/debug-queries/) to include admin pages to debug plugins as well.
Simply install as a plugin and voila.
- Inside your
wp-config.php
set:define( 'SAVEQUERIES', true );
- Install this repo as a plugin
- Activate the plugin
- Voila.