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:-)