我已阅读有关此问题的其他帖子,但我无法在本地网络服务器上使用xdebug 2.2.5和netbeans 8.0.1获得令人满意的性能(apache 2.4.9,php 5.5。 12在Windows 7上。有些页面加载时间超过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
P.S。我正在开发moodle 2.7
答案 0 :(得分: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