Skip to content

Instantly share code, notes, and snippets.

View ksemel's full-sized avatar

Katherine Semel-Munson ksemel

View GitHub Profile
@ksemel
ksemel / Debugging.php
Created March 6, 2014 03:26
How do I enable WordPress Debugging?
How do I enable WordPress Debugging?
In order to enable debugging in WordPress, you will need to add a small code snippet to your wp-config.php file.
This code will prevent error messages from appearing on-screen and instead log them to the /wp-content/debug.log.
/* Switch this value between true and false to enable and disable debugging */
define('WP_DEBUG', true);
/* This will log all errors notices and warnings to a file called debug.log in wp-content only when WP_DEBUG is true */
if (WP_DEBUG) {