php - Netbeans 8 和 xdebug 非常非常慢

标签 php netbeans xdebug moodle

我已经阅读了有关此问题的其他帖子,但我无法在本地 Web 服务器(apache 2.4.9、windows 7 上的 php 5.5.12)上使用 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

最佳答案

/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

关于php - Netbeans 8 和 xdebug 非常非常慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26094069/

相关文章:

php - Inline-Block 使图像变小的问题?

php - 如何在PHP的ElasticSearch查询中使用SQL AND条件?

php - WKHTMLTOPDF 在命令行上工作,但从 PHP 生成时返回 0 字节 pdf

java - Netbeans 项目属性中的 VM 选项

php - 函数参数上的奇怪 xdebug_debug_zval 行为 - 显示不正确的(?)引用计数

PHP 使用 SimpleXML 处理命名空间

android - 提交第一个apk到android平台时

java - jsoup select() 方法未找到

php - 如何使用 netbeans 和 Xdebug 调试 PHP

javascript - 如果从 web-worker 使用 Xdebug 不会停止?