Skip to content

Instantly share code, notes, and snippets.

@priscillamc
Last active July 18, 2016 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save priscillamc/443695737f0b604ee6ac to your computer and use it in GitHub Desktop.
Save priscillamc/443695737f0b604ee6ac to your computer and use it in GitHub Desktop.
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