2
votes

I'm trying to debug a PHP web application hosted in IIS from Eclipse using the Zend Debugger. Unfortunately whenever I start a debug session the web server becomes very slow in serving up the pages. So slow in fact that I often get 500 errors that prevent me from debugging at all.

I've traced back the 500 errors as coming from FastCGI timing out (50 secs) but there the trace ends. How can I figure out what makes debugging so slow and fix it?

Some more details:

  • Zend Debugger properly appears in php -m.
  • Both the IIS web server and the Eclipse IDE are on the same machine.
  • This is my personal developer machine. I'm the only one using it.
  • IIS 7.5 on Windows 7 Ultimate 64-bit
  • PHP 5.3.3 VC9 x86 (nts)
  • Zend Engine v2.3.0 with Zend Debugger v5.3
  • Eclipse Helios Service Release 2 (with PDT), Build id: 20110218-0911
1
Are you debugging on a local server, or the live environment? Are other people's requests going through Zend Debugger too?Steve Mayne
Thanks for helping. This is my personal developer machine. I'm the only one using it.urig
Can you try switching from Zend Debugger to xdebug and see if you experience the same problem? This will help determine if the fault is Eclipse/FastCGI or Zend Debugger.Charles
do you have anything like APC, eAccelerator or any other op-code cacher / optimizer?webdevbyjoss

1 Answers

2
votes

First of all you can increase the fcgi timeout in the pool's configuration window.

Secondly, zend debugger works in such a way, that every included file is not loaded from disk by the PHP interpreter, but it is separately requested from the IDE. This means that every include/require your code have - leads to increased load time, because PHP does not read the file directly from disk, but sends a request to the ide debug-listener port and asks for the code. Farther explained here

There is an option in Zend Studio(link 2 an image) to switch between the modes. Can't tell you exactly where is it located in eclipse, but finding that one may actually solve your problem.