简体   繁体   English

Netbeans 8和xdebug非常慢

[英]Netbeans 8 and xdebug very very slow

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). 我已经阅读了有关此问题的其他帖子,但我无法在本地Web服务器上使用xdebug 2.2.5和netbeans 8.0.1获得令人满意的性能(Windows 7上的apache 2.4.9,php 5.5.12)。 Some pages load in over 40 seconds, worse than the remote server performances. 有些页面加载时间超过40秒,比远程服务器性能差。 This is the xdebug section on my php.ini after the recommandations taken from some other post: 这是我的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

PS I'm developing on moodle 2.7 PS我正在开发moodle 2.7

Check that the theme designer mode is off in /config.php , debug is very slow when its on /config.php检查主题设计器模式是否已关闭,调试时它的启动非常慢

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

Other than that these are the only differences I can see in my settings in php.ini 除此之外,这些是我在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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM