Php Xdebug探查器-探查器快照格式不正确

Php Xdebug探查器-探查器快照格式不正确,php,phpstorm,xdebug,xdebug-profiler,Php,Phpstorm,Xdebug,Xdebug Profiler,我试图在PhpStorm中打开xdebug profiler输出,但出现错误: Incorrect profiler snapshot format For input string: "fl=(2)" 我似乎找不到任何迹象表明这可能是什么原因造成的 我使用的是OSX 10.13.4,PhpStorm版本2018.1,使用xdebug 2.5.5在PHP5.6.33上运行该过程 以下是我的php.ini配置: [xdebug] zend_extension=/usr/local/Cellar

我试图在PhpStorm中打开xdebug profiler输出,但出现错误:

Incorrect profiler snapshot format 
For input string: "fl=(2)"
我似乎找不到任何迹象表明这可能是什么原因造成的

我使用的是OSX 10.13.4,PhpStorm版本2018.1,使用xdebug 2.5.5在PHP5.6.33上运行该过程

以下是我的php.ini配置:

[xdebug]
zend_extension=/usr/local/Cellar/php56/5.6.33_9/lib/php/xdebug.so
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp/debug/
xdebug.profiler_output_name=cachegrind.out.%c
xdebug.profiler_enable_trigger=1
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
探查器的输出看起来有点奇怪,例如:

fl=(2)
fn=(5) php::spl_autoload_call
23 80
cfl=(1)
cfn=(4)
calls=1 0 0
23 2045

我不知道括号中的数字是用来做什么的,但我认为这是使PhpStorm分析仪跳闸的原因。

这是我的配置,请尝试一下:

zend_extension=/usr/lib/php5/20090626/xdebug.so
xdebug.idekey=PHPSTORM
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.remote_autostart=0
xdebug.remote_connect_back=1
xdebug.remote_log = "/tmp/xdebug_cli.log"
xdebug.profiler_enable=1
PHPStorm设置:

并记住在phpstorm中启用侦听:


我想我找到了问题的根源,或者至少找到了问题的一部分。
看起来这与脚本本身有关。很难说确切的原因,可能是因为它启动了一个守护进程,这可能会扰乱分析器,不确定。但是,如果我在其他设备上运行探查器,它会工作。

如果启用侦听,则会生成探查器文件,但无法打开。我可以看到你没有指定输出目录,默认情况下它会放在哪里?你也安装了chrome扩展吗?()我没有使用web浏览器,这是一个CLI脚本。请看这里,似乎需要使用EAP版本升级PHPStorm。如前所述,我使用的是2018.1版,这是应该包含修复程序的版本。请注意,我还尝试使用xdebug 2.6在php 7.2.5上运行,但遇到了相同的问题。这是最有可能的解释。在我的例子中,相同的问题是由调用外部REST API的函数引起的。在我注释掉函数之后,它就工作了。