Netbeans 8和xdebug非常慢 [英] Netbeans 8 and xdebug very very slow

查看:151
本文介绍了Netbeans 8和xdebug非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了有关此问题的其他文章,但是在本地Web服务器上使用xdebug 2.2.5和netbeans 8.0.1不能获得令人满意的性能(在Windows 7上为Apache 2.4.9,php 5.5.12) ).某些页面的加载时间超过40秒,比远程服务器的性能还差. 这是我的php.ini中的xdebug部分,来自其他帖子的推荐:

I've read other posts about this issue, but I can't get a satisfactory performance with xdebug 2.2.5 and netbeans 8.0.1 on a local web server (apache 2.4.9, php 5.5.12 on windows 7). Some pages load in over 40 seconds, worse than the remote server performances. This is the xdebug section on my php.ini after the recommandations taken from some other post:

xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey="xdebug-netbeans"
xdebug.remote_autostart = 0
xdebug.remote_connect_back = 0
xdebug.profiler_enable = 0

P.S.我正在使用Moddle 2.7进行开发

P.S. I'm developing on moodle 2.7

推荐答案

检查主题设计器模式在/config.php中是否已关闭,打开时调试非常慢

Check that the theme designer mode is off in /config.php, debug is very slow when its on

$CFG->themedesignermode = false; // Debug is very slow when set to true.

除了这些,我只能在php.ini

; Needs to be off for Netbeans xdebug - not sure why but its in my settings.
output_buffering = off ; Was 4096
; This setting is on by default - turned off here because it can interfere with xdebug
report_zend_debug = 0
; Settings from http://wiki.netbeans.org/HowToConfigureXDebug
; zend_extension = /usr/lib/php5/20100525/xdebug.so
zend_extension = /usr/lib/php5/20121212/xdebug.so ; PHP 5.5.3

这篇关于Netbeans 8和xdebug非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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