Ec (2); Environment: PHP5.2.5, Zendstudio5.5.1, ZendDebugger5.2.10 PHP debugging environment setup Tutorial: 1. The decompressed folder has different folders corresponding to different php versions. I use php5.2.5, so I used ZendDebugger under 5_2_x_comp. copy the dll to my php installation directory (E: php5.2.5. And copy dummy. php to the root directory of your website (do not know the net "script" ec (2); "script"
Environment: PHP 5.2.5, Zend studio 5.5.1, Zend Debugger 5.2.10
PHP debugging environment setup Tutorial:
1. Different php versions have different folders in the extracted folders.
I copied ZendDebugger. dll under 5_2_x_comp to my php installation directory (E: php5.2.5.
Copy dummy. php to the root directory of your website (if you do not know the root directory of the website, please refer to the following Frequently Asked Questions)
2. Open php. ini and add:
[Zend]
Zend_extension_ts = "E: php5.2.5ZendDebugger. dll"
Zend_debugger.allow_hosts = 127.0.0.1/32,127.0 .0.1/24
Zend_debugger.expose_remotely = allowed_hosts
3. Restart IIS (if you do not know how to restart it, refer to the FAQ). If you enable phpinfo (), it will succeed.
Installation Process FAQ:
1. Determine the version number first! Php has many versions, and the Zend product version must also match. Only Zend Debugger 5.2.x can debug php5.2.5. If you are confused by the php version and Zend version, you can read another article: "the simplest version in history! Zend product version analysis ".
Zend Debugger 5.2.10: http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.10-cygwin_nt-i386.tar.gz
2. What is the website root directory?
After IIS is installed, C: Inetpubwwwroot is created on drive C. This wwwroot is the root directory of the website, and dummy. php is stored here.
Open Control Panel> Administrative Tools> Internet Information Service, right-click the website> default website, and choose Properties> Home directory> local path to view C: Inetpubwwwroot
3. What does 127.0.0.1/32,127.0 .0.1/24 mean?
Indicates the subnet mask./32 indicates 255.255.255.255 (converted to binary is 32 bits) And/24 indicates 255.255.255.0.
4. How to restart IIS?
Open cmd, run net stop w3svc, and then run net start w3svc.
Start debugging:
1. Choose Zend studio> Tool> Preference> debug.