2

I am trying to xdebug php, everything works fine but answers are very slow (1-2 minutes).

PS: I am debugging YII framework project.

Any ideas?

Joeeee
  • 1,256
  • 6
  • 18
  • 25
  • xdebug + frameworks (a lot of 'abstraction') usually equals a lot of performance loss. You may try to disable some functionality in it's settings, but there is a reason why it shouldn't be on production servers. – Wrikken Mar 12 '11 at 09:06
  • It should be pretty fast unless you have profiling turned on, eg you have `xdebug.profiler_enable = 1` set in your .ini file. – therealjeffg Mar 12 '11 at 09:49
  • I can confirm this, using VirtualBox (Ubuntu) even with `xdebug.profiler_enable = 0` on the configuration. Seems to be a bug filed [here](http://bugs.xdebug.org/view.php?id=765). And [here](http://stackoverflow.com/questions/8677388/xdebug-really-slow) is a related issue. – arieltools May 20 '12 at 07:52
  • Had this problem. What worked for me: ensure you can ping your host from the guest (I use host-only adapter conf), if not probably because of your firewall ; ensure the field xdebug.remote_host is set to your host ip in /etc/php5/apache2/conf.d/xdebug.ini. – Fabien Nov 12 '12 at 10:00

0 Answers0