PHP 中的 XDebug 分析 - 无法获得输出 [英] XDebug profiling in PHP - can't get output

查看:55
本文介绍了PHP 中的 XDebug 分析 - 无法获得输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个奇怪的问题.我已经设置了 XDebug 来分析我们正在处理的 PHP 应用程序.我相信一切都设置正确,但运行它时没有输出.我的配置如下:

I've got a strange issue. I've setup XDebug to profile a PHP application we're working on. I believe everything is setup correctly but I get no output when I run it. My configuration looks like this:

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so
[XDebug]
xdebug.profiler_append = 1
xdebug.profiler_enable = 0 (I've tried this both on and off)
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "/debug/xdebug/profiler_output_dir"
xdebug.profiler_output_name = "cachegrind.out.%p"

所有 phpinfo() 设置都应该匹配.输出目录的权限现在设置为 777,以便我可以对其进行测试.我也尝试使用 public_html 下的目录,但没有运气.我用来启动探查器的 URL 是:

All the phpinfo() settings match up like they should. The permissions on the output directory are set to 777 right now just so I can test it. I've tried using a directory under public_html as well but no luck. The URL I'm using to launch the profiler is:

http://example.com/my_page.php?XDEBUG_PROFILE
-or-
http://example.com/my_page.php?XDEBUG_PROFILE=1

两者都不起作用.任何帮助将不胜感激!!此应用的页面加载时间为 5-6 秒,我无法通过代码对其进行跟踪.

Neither works. Any help would be GREATLY appreciated!! This app has a 5-6 second page load time and I haven't been able to trace it through code.

推荐答案

注释掉 xdebug.profiler_output_dirxdebug.profiler_output_name 看看是否可以在 <代码>/tmp/.

Comment out xdebug.profiler_output_dir and xdebug.profiler_output_name and see whether you can find the output under /tmp/.

这篇关于PHP 中的 XDebug 分析 - 无法获得输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆