【问题标题】:Enabling XDebug in XAMPP slows down phpmyadmin在 XAMPP 中启用 XDebug 会减慢 phpmyadmin
【发布时间】:2014-09-13 14:32:39
【问题描述】:

每当我启用 xdebug 以使用以下标准设置调试我的 php 项目时,它会减慢 phpmyadmin 的每一个操作。只需打开 phpmyadmin 就需要将近 10 秒。

zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = on
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.remote_port = 9000

编辑: 反复试验......这解决了问题

xdebug.remote_host = localhost

【问题讨论】:

  • 那么通过卸载扩展,不会减慢它的速度吗?
  • 我遇到了同样的问题,经过几天的搜索,我发现了这个:) 谢谢
  • 另一个对我有用的修复:xdebug.profiler_enable = 0
  • @andrzej1_1 谢谢!这解决了缓慢的解决问题,并使我能够保持 Xdebug 以我想要的方式运行。
  • @andrzej1_1 也为我工作。一直在到处寻找解决此问题的方法。谢谢。

标签: phpmyadmin xampp xdebug


【解决方案1】:

如果 xdebug.remote_autostart 已启用,请使用以下命令禁用它

xdebug.remote_autostart = 0

为我做了诀窍。

【讨论】:

  • 如果需要调试PHP代码(使用XDebug),如何启动(无需重新编辑php.ini文件)?
【解决方案2】:

从 wamp php 扩展中禁用 xdebug 对我有用。

php > 扩展 > php_xdebug 2.8.0

【讨论】:

  • 问题不在于如何禁用它。适当回答。
猜你喜欢
  • 2017-03-05
  • 2015-11-25
  • 2019-02-26
  • 2013-04-13
  • 2016-07-06
  • 2017-08-22
  • 2020-10-20
  • 2016-12-02
相关资源
最近更新 更多