PHP: Use zendstudio and Related Products in windows to build a php debugging environment-PHP source code

Source: Internet
Author: User
Tags download zend
Ec (2); php is the first stop for me to move the JavaScripter backward. & quot; to do a good job, you must first sharpen the Tool & quot; and copy the experience in js and java. The three prerequisites for learning a new technology are manuals, debugging environments, and mature code examples. the help manual in Chinese has been available, and there are many mature code examples, so the debugging environment is poor. (Please indicate the source of the post: blog.111cn. netlenel) describes the debugging environment in the manual, script ec (2); script


Php is the first stop for the JavaScripter to go backwards. "To do a good job, you must first sharpen the tool." copying the experience in js and java, the manual, debugging environment, and mature code examples are three primary conditions for learning a new technology. the help manual in Chinese has been available, and there are many mature code examples, so the debugging environment is poor.

(Please indicate the source of post: http://blog.111cn.net/lenel)

The Manual introduces the debugging environment. I searched for the php debugging on the Internet and did not get a complete and operable article. I only got to know that zend series products can be used for single-step and remote debugging.

After repeated attempts, I finally got it through. It is estimated that many phper are used in Meimei, but the complete operation process was not announced, I will write it into the php debugging environment on my xp machine.

(Please indicate the source of post: http://blog.111cn.net/lenel)

Download zend Core 2, Zend Platform, and ZendStudio from zend official http://www.zend.com/en/downloads,

Download mysql and phpMyAdmin

1. Uninstall the original apache and mysql

2. Install Zend Core 2. During the installation process, select the newly installed Zend Core to provide apache. If you do not uninstall the original apache, problems may occur. It is not easy to find the cause, so keep it correct for the final goal.

3. Install Zend Platform. This is required for remote debugging.

4. Installing Zend Studio will enable you to choose whether to install zend platform because zend guard does not need to be installed.

5. apache installed in ZendCore is installed by default. The html document directory under the Apache2 directory of the Zend Core installation directory is the htdos directory under the directory by default. It is mainly used for learning and should not be changed for security reasons.

6. After installing Zend Platform, you will find that a mysql is running. I wanted to use this mysql, but the root user password is unknown and cannot be connected, so I downloaded a mysql instance again. during the installation of another mysql instance, a new name is required for the mysql instance, because a mysql instance is running, and others are used by default. Remember the root user password.

7. Install phpMyAdmin, download it, decompress it to a sub-directory under htdoc, and modify config. sample. inc. php is config. sample. inc. php, set $ cfg [''servers'] [$ I] [''controluser''] = ''''; and $ cfg [''servers'] [$ I] [''controlpass''] = '''; remove the comments of the two rows, enter the username and password used to install mysql and access the phpMyAdmin directory.

8. If apache and mysql are available, you can select a sample code to install. wordpress, discuz, and phpwind. You can even directly debug phpmyadmin. It is the site created under htdocs.

9. Open zend studio, project-> new project to create a project. Right-click "add to project..." in the left-side project area and add the project folder to be debugged.

10. Click Broswer in the main IDE window and enter the local website, for example, http: // localhost/phpmyadmin/. After the page is opened, there is a debugging bug in the upper left corner, click the drop-down list and select "current page" to debug this page. After you click the worm, the PHP file corresponding to the current page will be displayed if no exceptions occur.

11. OK. Now you can start the debugging process. One-step execution (step into, step out), breakpoint (breakpoint), Monitoring (watch), runtime variable (variables ), call stacks are put there like most ides such as eclipse.

To download zend, You need to register it. However, you don't need to confirm via email. Several zend products seem to have time restrictions. If this happens, try again.

I try to use the text to make it clear, because search for "zend php debugging" and the top 10 articles I see are broken pictures. Here, only one article is attached.

</

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.