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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s