Debug Web with Zend Debugger + Zend Studio

Source: Internet
Author: User
Tags install php zend



Install PHP 5.2.0,apache and so on so that the Web can parse PHP files. This is a lot of online, it is not to elaborate. Because my working platform is windows, I am downloading DLLs that are compiled for Windows.

Zend Debugger 5.2.10 Download Address: http://downloads.zend.com/pdt/server-debugger/ZendDebugger-5.2.10-cygwin_nt-i386.tar.gz

Unzip the downloaded ZendDebugger-5.2.10, the directory structure is as follows:
<DIR> 4_3_x_comp
<DIR> 4_4_x_comp
<DIR> 5_0_x_comp
<DIR> 5_1_x_comp
<DIR> 5_2_x_comp
<DIR> 5_2_x_nts_comp
321 dummy.php
6,934 Inventory.xml
376 MD5
832 README.txt
Depending on the version of PHP you have installed, select the appropriate file. 5.2.x has 2 compiled DLLs, where 5_2_x_nts_comp is "non-tread safe", so I use DLLs within 5_2_x_comp.

The following is a detailed procedure.
1, please copy the ZendDebugger.dll to your PHP installation directory, such as: d:/do/php/.
2, then add the following 4 lines of content 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
The 192.168.1.25 is the IP of the machine where the remote debugging files are located; I am the local Web debugging, the IP of my machine is 192.168.1.25.
3, copy the dummy.php to the Apache document root directory.
4, restart Apache.
Open Browser run: http://192.168.1.25/phpinfo.php, you will see:


Ok,zend Debugger configuration completed. The following configuration Zend Studio 5.5.0.
1, line Zend Studio 5.5.0, menu: Tools > Preferences, then select "Debug", "Debug Mode" select "Server", and then "Debug Server URL" in the "Server_ address/"replaced by: 192.168.1.25.

2, Menu: Debug >> Debug URL, and then enter the URL to debug.

OK, you can 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.