【发布时间】:2018-05-11 08:40:57
【问题描述】:
我正在尝试在 PhpStorm 中打开 xdebug 分析器输出,但出现错误:
Incorrect profiler snapshot format
For input string: "fl=(2)"
我似乎找不到任何可能导致此问题的迹象。
我使用的是 OSX 10.13.4,PhpStorm 版本 2018.1,使用 xdebug 2.5.5 在 PHP 5.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 分析器的问题。
【问题讨论】:
-
请注意,我也尝试使用 xdebug 2.6 在 php 7.2.5 上运行并遇到同样的问题。
标签: php phpstorm xdebug xdebug-profiler