加载了LAMP xdebug,但没有在任何地方创建任何文件

时间:2013-10-17 17:47:35

标签: apache2 xdebug-profiler

我在php.ini中有以下设置(Apache 2.4 / PHP 5.5 / Fedora 19):

[XDebug]
zend_extension="/usr/lib64/php/modules/xdebug.so"
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_mode=req
xdebug.remote_port = 9000
xdebug.remote_host = localhost
xdebug.show_local_vars=On
xdebug.dump_undefined=On
xdebug.collect_return=On
xdebug.idekey=netbeans-xdebug

xdebug.profiler_enable = 1

通过使用PHP信息,我可以看到Xdebug已加载并且所有设置指令都已正确加载。 但是,我无法在任何地方看到任何cachecgrind输出。

我使用/ tmp或/ var / tmp +使用不同的文件名尝试了一些指令。目前我默认保留它。

SeLinux被禁用。 / tmp具有适当的权限。 我已尝试使用_trigger指令,并且默认情况下已启用。 没有任何cachegrind文件,使用updatedb&找到cachegrind。

1 个答案:

答案 0 :(得分:1)

出于某种原因,这对我有用:

xdebug.profiler_enable = on
xdebug.profiler_output_name = xdebug.out.%t
xdebug.profiler_output_dir = /var/www/projects/myproject/xdebug

我已将profiler_output_dir放在与我想要分析的虚拟网站相同的目录中。