Xdebug—没有概要文件或跟踪输出


Xdebug - no profile or trace output

我在尝试使用Xdebug(调试工作良好)进行分析和跟踪时有点不知所措。更糟糕的是,我让它在不同的服务器/客户端设置上工作得很好,但我似乎看不到使用localhost和这个开发人员工作站的区别。也没有任何内容输出到xdebug.log。

服务器:Ubuntu 10.04, PHP 5.3.2, Xdebug 2.2.1

php . ini:

xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_append = 1 
xdebug.profiler_output_dir="/var/www/xdebug-profiles"
xdebug.profiler_output_name="xdebug-profile.%t.%p"
xdebug.auto_trace=0
xdebug.trace_enable_trigger=1
xdebug.trace_options = 1 
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.trace_format=2
xdebug.trace_output_dir="/var/www/xdebug-traces"
xdebug.trace_output_name="trace.%t.%p"
xdebug.file_link_format="xdebug://%f@%l"
xdebug.remote_log="/var/www/xdebug.log"

显而易见的答案是"权限!"不幸的是,我很确定不是这样的:

# ls -ld /var/www/xdebug-profiles/
drwxrwxrwx 2 www-data www-data 4096 2013-01-02 10:40 /var/www/xdebug-profiles/

使用Firebug,我可以看到xdebug cookie肯定是在浏览器中设置的,以触发分析和跟踪。但是,即使我在php.ini中禁用了触发器并启用了global,我仍然没有得到任何输出。

有人有什么想法吗?

啊哈。经过一些尝试,看到phpinfo()中出现了一些奇怪的东西,看起来php.ini中的注释不赞成使用"#",所以我的php.ini中的散列标记将其炸毁。用分号替换它们,现在一切都好了。这个有点棘手,