How to enable WordPress debug only for your IP address

If you need to debug your WordPress website which is live and only want to display the php errors for your IP address you can edit your wp-config.php file.

First determine your IP address by Googling my ip address which will show you your current IP address.

NOTE: If you re-boot your router and have a dynamic IP address you will need to update your IP address in wp-config.php

Once you know your IP address you can edit your wp-config.php file and edit the WP_DEBUG constant and replace it with this function and your IP address.

 * For developers: WordPress debugging mode.
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 if ($_SERVER['REMOTE_ADDR'] == '') {
	define('WP_DEBUG', true); 
	// Enable Debug for your IP Address only.
	//Set to false to turn it off.	
} else {
	define('WP_DEBUG', false);

Now you will see any PHP errors and notices that your website has.