如何禁用XDebug [英] How to disable XDebug

查看:204
本文介绍了如何禁用XDebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I think that my server became slow since I installed XDebug. So, in order to test my hypothesis I want to disable XDebug completely. I've been searching for tutorials on how to do this but I can't find such information.

推荐答案

找到您的php.ini并寻找XDebug.

Find your php.ini and look for XDebug.

将xdebug自动启动设置为false

Set xdebug autostart to false

xdebug.remote_autostart=0  
xdebug.remote_enable=0

禁用分析器

xdebug.profiler_enable=0

请注意,可能会有即使禁用xdebug但已加载,性能也会下降.要禁用扩展本身的加载,您需要在php.ini中对其进行注释.查找如下所示的条目:

Note that there can be a performance loss even with xdebug disabled but loaded. To disable loading of the extension itself, you need to comment it in your php.ini. Find an entry looking like this:

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

并放入;进行评论,例如;zend_extension = ….

and put a ; to comment it, e.g. ;zend_extension = ….

查看此帖子 XDebug,如何禁用单个.php文件进行远程调试?

这篇关于如何禁用XDebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆