Use Zend debugger + Zend studio to debug Web

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.