Created
September 10, 2011 21:44
-
-
Save boogah/1208836 to your computer and use it in GitHub Desktop.
Clean WordPress Debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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