Skip to content

Instantly share code, notes, and snippets.

@priscillamc
Last active Jul 18, 2016
Embed
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);
@ini_set('display_errors',1);

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