Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created May 28, 2015 08:19
Show Gist options
  • Save thierrypigot/47b8cbc11e9a977b8295 to your computer and use it in GitHub Desktop.
Save thierrypigot/47b8cbc11e9a977b8295 to your computer and use it in GitHub Desktop.
WordPress : Activer le débogage
// Par défaut
define('WP_DEBUG', false);
/*------------------------------------*/
// Active le debogage
define('WP_DEBUG', true);
// Indique à WordPress de tout logger dans /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Ne force pas la variable PHP 'display_errors' à être sur < strong >On
define('WP_DEBUG_DISPLAY', false);
// empêche les erreurs d'être affichées à l'écran
@ini_set('display_errors', 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment