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 //////////////////////////////////////////////////////
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x