Php development environment configuration Series 3 in Windows-Eclipse PDT + Zend debugger debugging WEB Project

Source: Internet
Author: User
Tags php development environment

Basic Installation Reference

Http://blog.csdn.net/oscar999/article/details/6713666

This section only describes how to use the Zend debugger. php web file in PDT.

1. decompress the downloaded Zend debugger file.

1.1) Copy zenddebugger. dll under 5_2_x_comp to the PHP installation directory (for example, D: \ PHP. Use the corresponding zenddebugger version based on the PHP installation Version)

1.2) Copy dummy. php to the root directory of the website (for example, D: \ apache2 \ htdocs)

2. Open PHP. ini and add it to the end of the file.

[Zend debugger]
Zend_extension_ts = "D:/PHP/zenddebugger. dll"
Zend_debugger.allow_hosts = 127.0.0.1
Zend_debugger.expose_remotely = allowed_hosts

Note: zend_debugger.allow_hosts is recommended to use the IP address of the machine (you can view it in cmd using ipconfig/All)

After Zend debugger is installed, you can use the phpinfo function to check whether the installation is successful.

Create a new phpinfo. php file in the website directory and restart Web server. to access this file

<?phpphpinfo();?>

If the following content is found, the installation is successful (texture required)

Zend engine v2.2.0, copyright (c) 1998-2010 Zend Technologies
With Zend debugger v5.2.15, copyright (c) 1999-2008, by Zend Technologies

The next step is how to debug it in eclipse.

1. Click the bug icon and select debug deployments.

2. Double-click php web page --> new_configuration

3. Click Configure... configure the correct IP address and port

4. Select the file to be debugged.

5. Click test debugger. The "success" dialog box is displayed, indicating that the operation is successful.

6. F6 debugging

Related Article

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.