Know your WordPress using the WP_DEBUG option

If you’re into WordPress I’m sure you tried already all sorts of plugins and themes.What you might not be familiar with is the WP_DEBUG option. It raises the error reporting level to include warning messages that may be lurking around and that you haven’t been told about, e.g. deprecated functions being called or variables not being initialized. This happens because the default error reporting level of WordPress doesn’t include everything it could, I guess because some people don’t care or don’t know what to do with these messages. But it is good practice to have this option enabled in your development environment as any WordPress core developer or plugin/theme author will tell you.

It’s very simple to activate, just add to your wp-config.php file the following:

define('WP_DEBUG', true);

But don’t do it in your site, otherwise you won’t be the only one looking at the warnings :|

3 thoughts on “Know your WordPress using the WP_DEBUG option

Comments are closed.