如何将错误显示给某些用户或IP

发布于 2025-02-07 13:28:31 字数 94 浏览 5 评论 0原文

当前,当有通知或警告时,它将显示在我们的网页上。 我们希望仅适用于某些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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暗恋未遂 2025-02-14 13:28:31

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文