在使用PHPStorm的流浪机器中使用Xdebug配置WordPress应用程序

在使用PHPStorm的流浪机器中使用Xdebug配置WordPress应用程序,php,wordpress,xdebug,phpstorm,Php,Wordpress,Xdebug,Phpstorm,我想评测一个WordPress应用程序,以发现加载时间中的瓶颈 我的xdebug的php.ini配置是通过PuPHPet的config.yaml设置的: PHP配置 /etc/php5/conf.d/zzzz_custom.ini: [XDEBUG] xdebug.remote_connect_back=1 xdebug.default_enable=1 xdebug.remote_autostart=0 xdebug.remote_enable=1 xdebug.remote_port=90

我想评测一个WordPress应用程序,以发现加载时间中的瓶颈

我的xdebug的php.ini配置是通过PuPHPet的
config.yaml
设置的:


PHP配置 /etc/php5/conf.d/zzzz_custom.ini:

[XDEBUG]
xdebug.remote_connect_back=1
xdebug.default_enable=1
xdebug.remote_autostart=0
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_output_dir=/var/www/xdebug_profiler
xdebug.profiler_enable=1
xdebug:
    install: '1'
    settings:
        xdebug.default_enable: '1'
        xdebug.remote_autostart: '0'
        xdebug.remote_connect_back: '1'
        xdebug.remote_enable: '1'
        xdebug.remote_handler: dbgp
        xdebug.remote_port: '9000'
        xdebug.profiler_enable: '1'
        xdebug.profiler_output_dir: '/var/www/xdebug_profiler'
/var/www/puphpet/config.yaml:

[XDEBUG]
xdebug.remote_connect_back=1
xdebug.default_enable=1
xdebug.remote_autostart=0
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_output_dir=/var/www/xdebug_profiler
xdebug.profiler_enable=1
xdebug:
    install: '1'
    settings:
        xdebug.default_enable: '1'
        xdebug.remote_autostart: '0'
        xdebug.remote_connect_back: '1'
        xdebug.remote_enable: '1'
        xdebug.remote_handler: dbgp
        xdebug.remote_port: '9000'
        xdebug.profiler_enable: '1'
        xdebug.profiler_output_dir: '/var/www/xdebug_profiler'

Xdebug功能正常。下面是
php-i | grepxdebug
的输出:

$php-i | grepxdebug
20:/etc/php5/cli/conf.d/xdebug.ini,
45:Xdebug v2.1.0版权所有(c)2002-2010,作者:德里克·雷特汉斯
747:xdebug
749:xdebug支持=>已启用
756:xdebug.auto_trace=>Off=>Off
757:xdebug.collect_分配=>Off=>Off
758:xdebug.collect_includes=>On=>On
759:xdebug.collect_参数=>0=>0
760:xdebug.collect\u return=>Off=>Off
761:xdebug.collect_vars=>Off=>Off
762:xdebug.default_enable=>On=>On
763:xdebug.dump.COOKIE=>无值=>无值
764:xdebug.dump.ENV=>无值=>无值
765:xdebug.dump.FILES=>无值=>无值
766:xdebug.dump.GET=>无值=>无值
767:xdebug.dump.POST=>无值=>无值
768:xdebug.dump.REQUEST=>无值=>无值
769:xdebug.dump.SERVER=>无值=>无值
770:xdebug.dump.SESSION=>无值=>无值
771:xdebug.dump_globals=>On=>On
772:xdebug.dump_once=>On=>On
773:xdebug.dump_undefined=>Off=>Off
774:xdebug.extended_info=>On=>On
775:xdebug.file\u link\u格式=>无值=>无值
776:xdebug.idekey=>vagrant=>no值
777:xdebug.manual\u url=>http://www.php.net => http://www.php.net
778:xdebug.max_嵌套_级别=>100=>100
779:xdebug.overload\u var\u dump=>On=>On
780:xdebug.profiler_aggregate=>Off=>Off
781:xdebug.profiler_append=>Off=>Off
782:xdebug.profiler_enable=>On=>On
783:xdebug.profiler\u enable\u trigger=>Off=>Off
784:xdebug.profiler\u output\u dir=>/var/www/xdebug\u profiler=>/var/www/xdebug\u profiler
785:xdebug.profiler\u输出\u名称=>cachegrind.out.%p=>cachegrind.out.%p
786:xdebug.remote\u autostart=>Off=>Off
787:xdebug.remote\u connect\u back=>On=>On
788:xdebug.remote\u cookie\u expire\u time=>3600=>3600
789:xdebug.remote_enable=>On=>On
790:xdebug.remote_handler=>dbgp=>dbgp
791:xdebug.remote\u host=>localhost=>localhost
792:xdebug.remote_log=>无值=>无值
793:xdebug.remote_mode=>req=>req
794:xdebug.remote_端口=>9000=>9000
795:xdebug.scream=>Off=>Off
796:xdebug.show_exception_trace=>Off=>Off
797:xdebug.show_local_vars=>Off=>Off
798:xdebug.show_mem_delta=>Off=>Off
799:xdebug.trace_格式=>0=>0
800:xdebug.trace_选项=>0=>0
801:xdebug.trace\u output\u dir=>/tmp=>/tmp
802:xdebug.trace\u输出\u名称=>trace.%c=>trace.%c
803:xdebug.var\u display\u max\u children=>128=>128
804:xdebug.var\u display\u max\u data=>512=>512
805:xdebug.var\u display\u max\u depth=>3=>3
My
Start debugger
bookmarklet for Chrome包含以下代码:

javascript:(/** %40version 0.5.2 */function() %7Bdocument.cookie%3D%27XDEBUG_SESSION%3D%27%2B%27PHPSTORM%27%2B%27%3Bpath%3D/%3B%27%3B%7D)()

PHPStorm配置 我在
工具->编辑配置中通过自定义配置设置了Xdebug:
当在代码的任何地方设置断点时,它都能正常工作


配置文件没有显示任何内容: 当导航到站点,然后选择
工具->分析Xdebug Profiler Snapshot
时,我得到以下信息:

这一点用处都没有,而且显然缺乏信息

有什么想法吗?

最后一个屏幕截图——我看到了执行
php-I
或等效程序的结果。通过浏览器检查
phpinfo()
的输出时是否安装并启用了xdebug?(这是必要的,因为某些Linux发行版对CLI和web服务器使用不同的php.ini)