Currently when there is a notice or warning, it is displayed on our web pages. We would like this to be available only to some IPs or other criteria for our developers
Is there a way to render the error log stack only to certain IP?
Thanks
Currently when there is a notice or warning, it is displayed on our web pages. We would like this to be available only to some IPs or other criteria for our developers
Is there a way to render the error log stack only to certain IP?
Thanks
There is no feature in Xdebug that can do this.
What I would suggest to do is to create two web server vhost configurations, or php-fpm pools, if you're using that. With one configured to have Xdebug on, and the other to have it not activated and loaded. You can then use configuration in your web server to redirect incoming requests to either one of these PHP configurations, depending on the source IP address.