Most developers know of the common WP_DEBUG in the config file, but some don’t know there are way more possibilities with WordPress and PHP in general. In this article, I’m going to show you some tips and tricks that I use when debugging WordPress plugins and themes.
Like I said, WP_DEBUG is the common debug flag we use when working with WordPress. You normally see something like this in the wp-config file define( ‘WP_DEBUG’, ‘true’ ); This is what’s called a constant; it’s accessible anywhere from within WordPress itself. I, personally, use a more robust debug log.