XDebug的很慢 [英] XDebug really slow

查看:203
本文介绍了XDebug的很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让XDebug的工作在我的本地WAMP安装(统一服务器8)。

I am trying to get XDebug working on my local wamp installation (Uniform Server 8).

然而,当我把结果
xdebug.remote_enable = 1

However when I put
xdebug.remote_enable=1

在我的php.ini,这是需要我的IDE使用了XDebug,加载页面获得的每慢速网页5秒很慢。调试器的工作原理,但。

in my php.ini, which is required for my IDE to use xdebug, loading the pages gets really slow as in 5 seconds per page slow. The debugger works though.

我没有用了XDebug之前,但我可以想像,它通常不应该把这个长。我是pretty确保它可能是与使用Symfony2的框架。

I haven't used xdebug before but I can imagine that it normally shouldn't take this long. I'm pretty sure it might have something to do with using the symfony2 framework.

有没有人有一个想法是什么引起的?

Does anyone have an idea what's causing this?

推荐答案

这也许是因为这是它做什么!

It's maybe because this is what it does!

检查XDebug的日志的默认存储位置(大多数时候/ tmp目录的/的XDebug /东西)
这在Windows上会是比UNIX / Linux系统不同。

Check the default storage place for xdebug logs (most of the times /tmp/xdebug/something) which on Windows would be something different than on unix/linux systems.

这些设置在php.ini,如果你想让他们放在名为/别处:

set these in your php.ini if you want them placed/named somewhere else:

xdebug.profiler_output_dir
类型:字符串默认值:/ tmp目录
当分析器输出将被写入到该目录下,确保谁是PHP将运行在用户具有写权限到该目录。此设置不能在脚本中使用的ini_set()来设置。

xdebug.profiler_output_dir Type: string, Default value: /tmp The directory where the profiler output will be written to, make sure that the user who the PHP will be running as has write permissions to that directory. This setting can not be set in your script with ini_set().

xdebug.profiler_output_name
类型:字符串默认值:cachegrind.out%,P

xdebug.profiler_output_name Type: string, Default value: cachegrind.out.%p

此设置确定用于倾倒痕迹到文件的名称。该设置指定与格式说明,非常相似的sprintf()和strftime格式()。有可用于格式化的文件名几个格式说明

This setting determines the name of the file that is used to dump traces into. The setting specifies the format with format specifiers, very similar to sprintf() and strftime(). There are several format specifiers that can be used to format the file name.

生成这些文件是征税到系统中。但这些都是你需要配置您的code的内容。

Generating these files is taxing to your system. But these are what you need to profile your code.

也要去阅读 http://xdebug.org/docs 之前,你居然再次使用它,让你知道正是你正在尝试做的。

Also go read http://xdebug.org/docs before you actually use it again so that you know what exactly you are trying to do.

这篇关于XDebug的很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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