Add xdebug on/off switch function