Skip to content

Instantly share code, notes, and snippets.

Last active Jul 18, 2016
What would you like to do?
Enable WordPress debugging mode

How to Enable Debug Mode in WordPress

  1. Open wp-config.php and comment out line: define('WP_DEBUG', false);

  2. Paste in the lines below to enable WP_DEBUG mode. This will create a debug.log file in the wp-content folder. Rememeber to turn off debugging when you've finished.

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('error_reporting', E_ERROR);

How to put Jetpack in Development Mode

See documentation

define('JETPACK_DEV_DEBUG', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment