Comprehensive Debugging

//Report all types of errors.
define(‘WP_DEBUG’, true);
//Don’t show errors to site visitors.
define(‘WP_DEBUG_DISPLAY’, false);
//Put logs in wp-content. CAUTION: Hacking hazard
define(‘WP_DEBUG_LOG’, true);
 
 
@ini_set(‘display_errors’,’On’);
@ini_set(‘error_reporting’, E_ALL );
@ini_set ( ‘SCRIPT_DEBUG’, true );
@ini_set(‘log_errors’, ‘On’);
 
@ini_set(‘error_log’, ‘/home/sage/xhub.fun.log’);
 
 
// Simple, elegant ///////////////////////////////////////////////////
// TODO: Explain “Simple, elegant”
// TODO: Define top two segements
define(‘WP_DEBUG’, false);
 
/*
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
*/
// END //////////////////////////////////////////////////////
All Tags


Leave a Reply

%d bloggers like this: