Skip to content

Instantly share code, notes, and snippets.

@boogah
Created September 10, 2011 21:44
Show Gist options
  • Save boogah/1208836 to your computer and use it in GitHub Desktop.
Save boogah/1208836 to your computer and use it in GitHub Desktop.
Clean WordPress Debugging
Clean debugging:
// Add this to wp-config.php to cleanly debug a site.
// Just make sure to turn it off when you're done!
define('WP_DEBUG', true); // Turn debugging ON
define('WP_DEBUG_DISPLAY', false); // Turn forced display OFF
define('WP_DEBUG_LOG', true); // Turn logging to wp-content/debug.log ON
# Drop this in a .htaccess file in wp-content to keep the log safe.
<files debug.log>
order allow,deny
deny from all
</files>
# In the shell, run:
# tail -f wp-content/debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment