2

我正在尝试使用 xdebug 2.5.5 php 版本 7.0.0 在 Windows 8.1 机器上分析 Laravel 5.5 应用程序。php 作为 cgi 运行

调试效果很好,我可以调试,但是分析器文件充满了这个 Laravel 错误(这仅适用于 Laravel 应用程序,在简单的 php 文件分析中工作正常):

version: 1 creator: xdebug 2.5.5 (PHP 7.0.15-dev)
cmd: D:\www\laravel55\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php
part: 1
positions: line

events: Time

fl=(1)
fn=(2770) php::error_get_last
122 0

fl=(1)
fn=(74)
122 0

fl=(88)
fn=(2771) Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown
120 73
cfl=(1)
cfn=(2770)
calls=1 0 0
122 0
cfl=(1)
cfn=(74)
calls=1 0 0
122 0

我已经尝试使用 xdebug 2.5.5 php 版本 7.1.9。一样。

这是 xdebug 设置:

[Xdebug]
zend_extension="D:\AppServ\xdebug\php_xdebug-2.5.5-7.1-vc14-nts.dll"
xdebug.remote_enable=1
;xdebug.remote_port="<the port for Xdebug to listen to>" (the default port is 9000)
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_enable_trigger_value=1
xdebug.remote_autostart=1
xdebug.profiler_output_dir="D:\AppServ\xdebug\tmp"
xdebug.idekey="PHPSTORM"
4

1 回答 1

3

网格文件可能是空的,因为它在同一个请求中被多次覆盖。

您可以将时间戳+脚本位置添加到文件名中以防止这种情况发生:

xdebug.profiler_output_name = "cachegrind.out.%t-%s"
于 2017-11-15T15:41:30.367 回答