xdebug影响php运行速度 -尊龙游戏旗舰厅官网
尊龙游戏旗舰厅官网
收集整理的这篇文章主要介绍了
xdebug影响php运行速度
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
我在本地wamp的环境下面加了xdebug用来调试,但是我发现wordpress运行速度好慢,所有程序运行变得也很慢。开始以为是数据库有问题,找了半天,发现把xdebug的扩展去掉,就正常了。
目前配置:
[xdebug] ;zend_extension="ext/php_xdebug-2.3.3-5.4-vc9-nts.dll" ;xdebug.var_display_max_children=128 ;xdebug.var_display_max_data=512 xdebug.var_display_max_depth=10 xdebug.max_nesting_level=100xdebug.auto_trace= "on" xdebug.collect_params= "on" xdebug.collect_return= "on" xdebug.trace_output_dir="xdebug/trace" xdebug.profiler_enable= "true" xdebug.profiler_output_dir="xdebug/profiler" xdebug.profiler_append = 1 xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable= "on" xdebug.remote_autostart = "on" xdebug.remote_host=192.168.36.101 xdebug.remote_port=9000 xdebug.remote_handler = "dbgp"
安装xdebug前后运行截图:
安装前
安装后
可能原因:
速度慢并不是 xdebug 运行慢,而是配置了 xedebug ,它首先会去尝试连接调试服务器,连接不上才直接返回 php 结果。如果这时候打开 phpstorm 的调试监听,这时候 php 运行的速度就超快了。
参考:
http://www.oschina.net/question/656655_102191
http://www.111cn.net/sys/centos/74770.htm
http://www.cnblogs.com/dreamhome/p/3218744.html
总结
以上是尊龙游戏旗舰厅官网为你收集整理的xdebug影响php运行速度的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 科普:tls、ssl、https以及证书
- 下一篇: rpm包及其管理 rpm命令