By Aaron Belchamber · 02/26/2014
Turn on WordPress Debugging
<?php define('WP_DEBUG', true); ?>
When you’re in development mode, it’s useful to get errors in scripts as they occur. Just place this line anywhere in your functions.php file for your active child theme and you will start seeing debug feedback complete with script names and line numbers. You can just remove this line, or set “WP_DEBUG” to false if you want to shut off debugging or definitely before you go live!
This post was written with help from AI. Aaron Belchamber edited it and checked the commands, code and version numbers before publishing.