If you’ve ever had to debug WordPress you have likely come across the WP_DEBUG setting in the wp-config.php file.
WordPress offers a few more options as well that can help us with debugging: WP_DEBUG_LOG and WP_DEBUG_DISPLAY.
WPMU.org does a great write up on all of these options, check it out for more detailed information.