Comments on: How to Debug WordPress Beyond the Basics https://wpshout.com/how-to-debug-wordpress-beyond-the-basics/ A hub for advanced WordPress users, developers & savvy business owners. Thu, 11 Feb 2021 17:49:39 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: David Hayes https://wpshout.com/how-to-debug-wordpress-beyond-the-basics/#comment-22178 Thu, 11 Feb 2021 17:49:39 +0000 https://wpshout.com/?p=22403#comment-22178 In reply to Richard.

Cool idea! I’d genuinely never thought of “only show to my IP” type of debug rules 🙂

]]>
By: Richard https://wpshout.com/how-to-debug-wordpress-beyond-the-basics/#comment-22177 Fri, 05 Feb 2021 06:29:52 +0000 https://wpshout.com/?p=22403#comment-22177 Nice article!

You can also, in the wp-config file, reduce the scope of the debug information with a test, which is based on your IP address (to be replaced by your current address of course).

Something like that:

if (“123.45.67.89” === $_SERVER[“REMOTE_ADDR”]) {
define( ‘WP_DEBUG’, true );
} else {
define( ‘WP_DEBUG’, false );
}

This reduces harmful displays on a production site (while still using the other methods mentioned)

]]>