Posts tagged “debugging”

WordPress WP_DEBUG_LOG without E_STRICT

As Debugging in WordPress explains, it's easy to get good debugging information into a debug.log file while developing WordPress plugins and themes. Unfortunately, it sets the PHP error reporting level to E_ALL, which includes E_STRICT and can throw so much noise into the log that you can't find the useful information. What we need is a way to turn on the debug log but specify the error reporting level.