Install PHP 5.2.0 and Apache to parse PHP files on the web. I will not go into details if there are many online users. Because my work platform is windows, I downloaded the DLL compiled for Windows.
Zend debugger 5.2.10: http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.10-cygwin_nt-i386.tar.gz
Unzip the downloaded ZendDebugger-5.2.10, directory structure is as follows:
<Dir> 4_3_x_comp
<Dir> 4_4_x_comp
<Dir> 5_0_x_comp
<Dir> 5_rjx_comp
<Dir> 5_2_x_comp
<Dir> 5_2_x_nts_comp
321 dummy. php
6,934 inventory. xml
376 MD5
832 readme.txt
Select a file based on the PHP version you have installed. 5.2.x has two compiled DLL, 5_2_x_nts_comp is "non-tread safe", so I use the DLL in 5_2_x_comp.
The procedure is as follows.
1. Copy zenddebugger. DLL to your PHP installation directory, for example, D:/do/PHP /.
2. Add the following four lines to your php. ini:
[Zend]
Zend_extension_ts = D:/do/PHP/zenddebugger. dll
Zend_debugger.allow_hosts = 192.168.1.25
Zend_debugger.expose_remotely = always
Among them, 192.168.1.25 is the IP address of the machine where the remote debugging file is located; I am Local Web debugging, and my machine's IP address is 192.168.1.25.
3. Copy dummy. php to the document root directory of Apache.
4. Restart Apache.
Open the browser and run: http: // 192.168.1.25/phpinfo. php. You will see:
OK. Zend debugger configuration is complete. Configure Zend studio 5.5.0 below.
1. Line Zend studio 5.5.0, menu: Tools> preferences, then select "debug", "debug mode" and "server ", replace "server_address/" in "Debug server URL" with 192.168.1.25.
2. Menu: Debug> debug URL, and enter the URL to debug.
OK. Can I debug it?