IP Address debug PHP

You can debug parts of your PHP code in runtime. All you need is to add these line in your PHP:

if ($_SERVER['REMOTE_ADDR'] == '12.34.56.789') {  
    //ini_set('display_errors',1);
    //error_reporting(E_ALL);
    /*your debug code here*/
}

12.34.56.789 <- change this on your IP address. (You can get your current IP here https://www.myip.com/)