Ahoj, nejjednodušeji debug zapneš přes wp-config.php. Osobně se mi líbí toto nastavení:
// Turns WordPress debugging on
define('WP_DEBUG', true);
// Tells WordPress to log everything to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Doesn't force the PHP 'display_errors' variable to be on
define('WP_DEBUG_DISPLAY', false);
// Hides errors from being displayed on-screen
@ini_set('display_errors', 0);
Případně lze na debugování použít nějaký plugin, například: https://wordpress.org/plugins/debug-bar/