HOW TO DEBUG WORDPRESS

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:

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