Skip to content

Instantly share code, notes, and snippets.

@barrykooij
Created December 14, 2014 18:38
Show Gist options
  • Save barrykooij/93d23873ef3c25ffd577 to your computer and use it in GitHub Desktop.
Save barrykooij/93d23873ef3c25ffd577 to your computer and use it in GitHub Desktop.
define('WP_DEBUG', true);
if ( WP_DEBUG ) {
/**
* Turn on error logging and show errors on-screen if in debugging mode
*/
@error_reporting( E_ALL );
@ini_set( 'log_errors', true );
@ini_set( 'log_errors_max_len', '0' );
/**
* Change the path to one on your webserver, the directory does not have to be in the web root
*/
//@ini_set( 'error_log', '/path/to/writable/file/logs/error.log' );
// Ini sets
@ini_set( 'display_errors', true ); // Show errors on screen
@ini_set( 'html_errors', true );
@ini_set( 'docref_root', 'http://php.net/manual/' );
@ini_set( 'docref_ext', '.php' );
@ini_set( 'error_prepend_string', '<span style="color: #ff0000; background-color: transparent;">' );
@ini_set( 'error_append_string', '</span>' );
if ( ! defined( 'SAVEQUERIES' ) ) {
define( 'SAVEQUERIES', true );
}
if ( ! defined( 'WP_CACHE' ) ) {
define( 'WP_CACHE', false );
}
if ( ! defined( 'SCRIPT_DEBUG' ) ) {
define( 'SCRIPT_DEBUG', true );
}
if ( ! defined( 'WP_DEBUG_LOG' ) ) {
define( 'WP_DEBUG_LOG', true );
}
if ( ! defined( 'WP_DEBUG_DISPLAY' ) ) {
define( 'WP_DEBUG_DISPLAY', true );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment