如何将错误显示给某些用户或IP
当前,当有通知或警告时,它将显示在我们的网页上。 我们希望仅适用于某些IP或其他标准,我们的开发人员
是否可以将错误日志堆栈仅用于某些IP?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Xdebug中没有功能可以做到这一点。
如果您使用的话,我建议要做的是创建两个Web服务器VHOST配置或PHP-FPM池。一个配置为具有Xdebug,另一个配置为未激活和加载它。然后,您可以使用Web服务器中的配置将传入请求重定向到这些PHP配置之一,具体取决于源IP地址。
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.