How to configure Zend Debugger in Eclipse?

I am trying to set up my first PHP development environment, and I am having quite a few problems with Debug working or more accurately hitting breakpoints.

Here is what i did

1.) Confirmed that php is running on my Apache server on Windows. I did this by creating a test index.php file with phpinfo () in it.

2.) I installed Zend Debugger in Eclipse.

3.) I installed the php.ini file with the following code.

[Zend] zend_extension_ts="c:/php/ext/ZendDebugger.dll" zend_debugger.allow_hosts=127.0.0.1/32 zend_debugger.expose_remotely=always 

4.) I opened the port for the debugger in the Windows firewall, in my case Eclipse says that Zend uses 10000.

5.) I added the dummy.php file to the root directory of the document.

6.) I restarted Apache after all this.

7.) When I go to test my debugger in eclipse, I get the following error message.

Zend error

8.) When I look in the proposed section. I see it.

enter image description here

+7
source share
1 answer

The most likely cause is a PHP misconfiguration. Check phpinfo() if you have a Zend debugger section and check your configuration.

Zend Debugger entry in phpinfo ()

Note that the suffix _ts in zend_debugger_ts means Thread Safety. If your PHP is 5.3 or higher, or you have disabled thread protection (you can check this with phpinfo ()), you will need to use the zend_debugger directive instead of zend_debugger_ts .

Also expose_remotely confirms the values 0 (Never), 1 (Always) and 2 (Allowed hosts); any other value makes Zend Debugger invisible.

+4
source

All Articles