A lovely article by Smashing Magazine pointed me towards a lovely plugin named Blackbox Debug Bar. Automatic, the creators of WordPress have made their own debug bar plugin, but it doesn’t provide the complete picture that Blackbox does. Unfortunately Blackbox nuzzles itself to the top of the page, exactly as the WordPress toolbar (3.1+) does. It also shows for all users (as it’s intended only for development environments) and shows in the back-end so you can debug those pages as well.
Very few people run a proper staging environment with their WordPress project; even if you do, the odd bug can still crop up on production, which will require debugging. I’ve created a version of the Blackbox Debug Bar which:
- Hides from all users but super admins (aka network admins or founding user)
- Only shows on front-end pages (debuging the back-end is rare for most projects)
- Moves the bar to the bottom of the page, to not interfere with the WP toolbar
If you would like the bar to show up on admin pages, open up index.php and remove the first, rather obvious if statement.