我认为自从我安装了XDebug后,我的服务器变得很慢。因此,为了验证我的假设,我想完全禁用XDebug。我一直在搜索关于如何做到这一点的教程,但我找不到这样的信息。
发布于 2012-01-06 15:57:26
找到你的php.ini并查找XDebug。
将xdebug autostart设置为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?
发布于 2015-04-13 19:30:01
类似于Ubuntu的在Linux发行版上工作的简单解决方案
sudo php5dismod xdebug
sudo service apache2 restart发布于 2013-01-09 02:20:21
此外,您还可以将xdebug_disable()添加到代码中。尝试:
if(function_exists('xdebug_disable')) { xdebug_disable(); }
https://stackoverflow.com/questions/8754826
复制相似问题