How to use Eclipse to build PHP development and debugging environment on Ubuntu ____php

Source: Internet
Author: User
Tags php script

1. Install plug-ins such as Eclipse and PDT: The simplest is to download the latest version of PDT x.x all in Ones/eclipse PHP Package from this site http://eclipse.org/pdt/


2. Install the Java Runtime Environment JRE/JDK, note that the JRE or JDK version must meet the minimum requirements of the Eclipse software


3. Installation Configuration Xdebug (refer to my article http://blog.csdn.net/huoyin/article/details/7538738), it is best to change the port in this article to 9000, This way, you can configure less of the part in Eclipse



4. Restart Apache
Sudo/etc/init.d/apache2 restart


5. Open Eclipse, build a PHP project, and build a PHP Web page
Echo Phpinfo ();
Save, Test in Firefox to see the results. Here to pay attention to the path, be sure to find the file.


6. Configure Eclipse's browser
Open Eclipse, find Window->preferences->general->web Browser, see if there is no browser, not to add, of course, Firefox

7. Configuration operation and debugging options
Window->preferences->php->>php executables->add-> is set as follows
PhP5
/USR/BIN/PHP5 (note here to select PhP5, not PHP, because we are installing Php5-xdebug)

8. After the establishment of PHP script, the final debugging run
Turn on Run->open Debug Dialog, choose the name and environment you need for debugging, and take a closer look.
Then you can step through the debugging.


The main is so much, the other oneself more fumble, I remember not too much:-)

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.