我正在尝试在 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 分析器跳闸的原因。