How to enable debugging messages in WordPress
To enable debugging messages in WordPress, add the following …
define('WP_DEBUG', true);
define('SCRIPT_DEBUG', true);
to the wp-config.php file in your development environment. For security reasons, remember to remove these in your production environment.