Recently, to start using the Zend Framework to develop midsize applications, with a fully object-oriented framework to develop the program, not only the development of ideas, the previous Editplus+dreamweaver editor portfolio is clearly not enough to meet my requirements. My new environment is initially designated as the ECLIPSE+PDT plugin +xdebug+apache.
Previously, the dotnet, Java IDE Code automatic sniffing, code hints, program breakpoint debugging and so on automation function envy unceasingly, but own write PHP only relies on Echo, Var_dump () to debug the program, can let PHP also realize breakpoint debugging? The debug option, which was previously found in Eclipse's PHP plug-in, was supposed to be feasible, but I didn't know how to configure it, and ran to Google to find data that didn't have a complete introduction configuration document, and I could only splice the information I got and then test it.
The result is: the perfect implementation of PHP breakpoint debugging!
=====================================================
This article is an original article, reproduced please indicate the origin of the article from the place of thought, the author: Hazy Evil
=====================================================
The following is the detailed process.
Step One:
1. First download and install the corresponding software
JDK is absolutely necessary, it is the most basic requirement to run eclipse, to download here.
Eclipse has consolidated the PHP development plug-in version here to download, select the version of your operating system and download it locally.
Xdebug to download here, please choose the appropriate file download according to your version of PHP.
Server arbitrary, recommend the use of Apache+php module installation method.
2. Software Installation
After you install the JDK first, follow these steps to configure the system variables
followed by the installation of Eclipse,eclipse do not have to set, as long as the jdk,eclipse placed in any location can be directly run
Last Xdebug Installation
My own use is PHP5.2.5, download the Xdebug file name is: Php_xdebug-2.0.3-5.2.5.dll, put the file under the Php/ext folder can