If you develop with wordpress.org code you should be doing this.

Open your wp-config.php

Put this in it

define('WP_DEBUG', true); define('SAVEQUERIES', true); define('SCRIPT_DEBUG', true);

Now go download this: http://wordpress.org/extend/plugins/debug-bar/

Make sure you enable the admin bar under Users–> YOU —> “Show Toolbar when viewing site” (do not do this on a live site).

——————————————————————————————————————

Want More?

Read:

Helpful plugins:

Core Control – http://wordpress.org/extend/plugins/core-control/

BlackBox Debug Bar – http://wordpress.org/extend/plugins/blackbox-debug-bar/

P3 (Plugin Performance Profiler) – http://wordpress.org/extend/plugins/p3-profiler/

Debug Objects – http://wordpress.org/extend/plugins/debug-objects/

Depreciated Notices – http://wordpress.org/extend/plugins/log-deprecated-notices/

Code Localization – http://wordpress.org/extend/plugins/codestyling-localization/

Hook Sniffer – http://wordpress.org/extend/plugins/wordpress-hook-sniffer/

Rewrite Analyzer – http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer

XHProf – http://wordpress.org/extend/plugins/wp-xhprof-profiler/

MySQL Profiler – http://wordpress.org/extend/plugins/mysql-profiler/

SQL Monitor – http://wordpress.org/extend/plugins/sqlmon/

Extras:

WordPress Hooks database: http://adambrown.info/p/wp_hooks

How to style debug output using Krumo or Kint:

http://wordpress.stackexchange.com/questions/40952/nice-way-to-print-r-arrays

Webgrind: https://github.com/jokkedk/webgrind