开发者社区> 问答> 正文

profiling无效 : 配置报错

zend studio + xdebug +firefox的xdebug插件,  

zend studio + xdebug +firefox的xdebug插件。 想对脚本进行profiling,看看性能。
但是zend studio就是没反应(不切换到profiling窗口, 窗口里空空如也。)。

xdebug配置
xdebug.remote_enable = On;
xdebug.remote_host = "localhost";
xdebug.remote_port= 9001;
xdebug.remote_handler = "dbgp";
xdebug.profile_enable = 0;
xdebug.profiler_enable_trigger = 1;
xdebug.profiler_output_dir = D:\php54\profile

用firebug的请求头发现cookie已经包含 XDEBUG_PROFILE=1
并且检查D:\php54\profile 里面也已经有xdebug生成的profiling文件 

所以怀疑是zend studio的配置问题。 但找不到解决办法。

有人解决过这种问题么?

展开
收起
kun坤 2020-06-04 13:07:34 509 0
1 条回答
写回答
取消 提交回答
  • 既然都用Zend Studio了,为什么还要用XDebug,Zend Debugger不是很好用吗?

    我这里以Ubuntu为例,下载Zend Debugger: http://www.zend.com/en/products/studio/downloads 在/etc/php5/apache2/php.ini中加入 zend_extension=/usr/lib/php5/ZendDebugger.so zend_debugger.allow_hosts=127.0.0.1 其中/usr/lib/php5/ZendDebugger.so为你放置ZendDebugger.so的位置。 把ZendDebugger里的dummy.php拷到网站根目录/var/www/ sudo service apache2 restart 重启服务器 查看探针phpinfo,查找Zend Debugger验证安装成功。 ######zend debugger支持5.4么?######那个,php需要调试么?我以前也学过xdebug的用法,不过我也是完成了几个大型web项目,貌似都是不需要调试的,凭经验跟错误提示看的出来啊

    2020-06-05 13:36:33
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载