Netbeans 8和xdebug非常缓慢

3

我已经阅读了其他关于这个问题的帖子,但是我无法在本地web服务器(apache 2.4.9、php 5.5.12、windows 7)上使用xdebug 2.2.5和netbeans 8.0.1获得令人满意的性能。一些页面加载时间超过40秒,比远程服务器表现更差。

这是我的php.ini文件中的xdebug部分,采用了一些其他帖子的建议:

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

附言:我正在开发 Moodle 2.7

1个回答

1

请检查/config.php中的主题设计者模式是否关闭,如果开启会导致调试非常缓慢。

$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

它仍然很慢,但现在稍微快了一点。 - alez

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接