WP Debug True - Life Saver

Learning from Errors.

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

I can't stress enough. Turn the Debug mode in WP, even if you don't use it (now). It solves the future headaches quickly.

Let's go over this quickly.

define('WP_DEBUG', true);

This piece of code is to ensure that the debug mode is on.

define( 'WP_DEBUG_LOG', true );

The second line creates a log file in wp_content. You can download the file and perform audits based on this file.

define( 'WP_DEBUG_DISPLAY', false );

The third line is to ensure that the debug codes, error and such are not displayed on the main page.

These three lines can be added to your wp-config.php file.

The reason I have them on is that sometimes the server just fail. Giving Internal 500 error, which isn't useful. Turning this on enables me to access the error log without having to log in to WP.

Often time, I use this log to enhance the website performance. Speed and reliability issues. Anyway, Good luck!

A share would be, Sublime.

Hi, I'm Edwin

I'm a multilayer Marketer + Designer that helps businesses get more leads. My core skills are web design, SEO and Copywriting. I work at Web Design, Laman7
Malaysia Website Awards