Php:windows use Zend Studio and related products to build PHP debugging environment

Source: Internet
Author: User
Tags download zend phpmyadmin zend

PHP is the first stop for me to go backwards in this javascripter. " 工欲善其事, its prerequisite ", copied in the JS, Java Experience, the manual, debugging environment, mature code paradigm is learning a new technology 3 of the first conditions. The Chinese help manual already has, the mature code example many, on debugging environment.

(reprint please indicate the source: Http://blog.111cn.net/lenel)

The Handbook about debugging environment introduced a number, online search for a bit of PHP debugging has not been fully operational good text, only got the Zend series of products can be single step, remote debugging.

After repeated attempts, finally straightened, it is estimated that a lot of phper are in the use of Meimei, but did not publish the complete operation process, I write on my XP machine to build PHP debugging environment of the water account

(reprint please indicate the source: Http://blog.111cn.net/lenel)

From Zend official http://www.zend.com/en/downloads/download Zend Core 2, Zend Platform, Zendstudio,

Download Mysql,phpmyadmin

1, uninstall the original Apache, MySQL

2, installation Zend Core 2, installation process to choose the new Zend Core to provide Apache, if not uninstall the original Apache is likely to be a problem, but also difficult to find out why, so in order to keep the ultimate goal Conservative point Yes

3, install Zend Platform. Because remote debugging has to be loaded.

4, installation Zend Studio installation process will let you choose whether to install Zend platform because it has been installed on the need, Zend Guard also do not install

5, zendcore default installed Apache in the Zend Core installation directory of the same Apache2 directory under the HTML document directory is the default for its Htdos directory, learning for the sake of security also don't change

6, install Zend platform will find that there is a MySQL running, I would like to use this MySQL, but the root user password does not know, can not connect, So I downloaded a mysql. Installing another MySQL process requires a new name for the MySQL instance, because there is already a MySQL run running, others with the road default, remember the root user password

7, install phpMyAdmin, download after the Htdoc under a subdirectory, modify config.sample.inc.php for config.sample.inc.php, will $cfg[' Servers ' [$i] Controluser '] = ' ' and $cfg[' Servers ' [$i] [' controlpass '] = ' '; Two lines of comments removed, fill in the username and password that just installed MySQL, access the phpMyAdmin directory, I should be able to run.

8, Apache and MySQL have, you can choose a sample code to install. WordPress, Discuz, phpwind anything even direct debugging phpMyAdmin good, anyway is htdocs under the establishment of the site

9. Open Zend Studio,project->new Project. In the left side of the project area, right-click "Add to Project ..." Add the project folder you want to debug in

10, in the IDE's main window click broswer, input local URL, such as http://localhost/phpmyadmin/, open the page, the top left corner of the debugging bugs in, click the Drop-down Select "Current Page", debug this page, click on the Bug, If no surprises will jump to the current page of the corresponding PHP file

11, OK, you can start debugging the journey, Single-step (step into, steps out), Breakpoints (breakpoint), monitoring (watch), Running time varying (variables), call stack (stack) Are put there like most Ides like Eclipse.

To Zend download need to register, but do not email confirmation, Zend Several products appear to have the use of time constraints, and then find a way to solve

I try to use words to say clearly, because the search "Zend PHP debugging" See the most of the article 10来 Zhang are broken, here is only a picture

</

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.