gpt4 book ai didi

php - 如何禁用 XDebug

转载 作者:IT老高 更新时间:2023-10-28 11:48:51 25 4
gpt4 key购买 nike

我认为安装 XDebug 后我的服务器变慢了。所以,为了检验我的假设,我想完全禁用 XDebug。我一直在寻找有关如何执行此操作的教程,但找不到此类信息。

最佳答案

找到你的 php.ini 并寻找 XDebug。

将 xdebug 自动启动设置为 false

xdebug.remote_autostart=0  
xdebug.remote_enable=0

禁用您的分析器

xdebug.profiler_enable=0

请注意,可以有 performance loss even with xdebug disabled but loaded .要禁用扩展本身的加载,您需要在 php.ini 中对其进行注释。查找如下所示的条目:

zend_extension = "/path/to/php_xdebug.dll"

并放一个 ; 来评论它,例如;zend_extension = ….

查看这篇文章 XDebug, how to disable remote debugging for single .php file?

关于php - 如何禁用 XDebug,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8754826/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com