1:eclipse Development of PHP in the whole process of building with Debug configuration
2: Install the Java running Environment first this eclipse is running on this, install it yourself.
3: Install the operating environment of PHP, I was apache+php their own configuration, PHP version is the version of the 5.3.apache is 2.2. I set Apache's home directory in my D:\phproot. The home directory of my PHP is
D:\php-5.3.8-Win32-VC9-x86. Here's what I want to say:
1: Download eclipse PDT All in one, address: http://downloads.zend.com/pdt/all-in-one/helios/SR-1/eclipse-php-helios-SR1-win32.zip
2: Download Xdebug (because I this version of PHP is TS is the thread-safe, and the commonly used Zend Debuger I did not see this version of 5.3, so chose the xdebug, did not think xdebug configuration simpler instead), download the address is: http:// Www.xdebug.org/files/php_xdebug-2.2.1-5.3-vc9.dll
3: Put the downloaded DLL in the place is:
D:\php-5.3.8-Win32-VC9-x86\ext\php_xdebug-2.2.1-5.3-vc9.dll
4: Add the following statement under PHP.ini:
[Xdebug]
Zend_extension=d:\php-5.3.8-win32-vc9-x86\ext\php_xdebug-2.2.1-5.3-vc9.dll
Xdebug.profiler_enable=on
Xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.show_exception_trace = on
Xdebug.remote_autostart = on
xdebug.remote_enable = on
xdebug.collect_vars = On
5: Restart Apache, casually build a php file, to output the phpinfo (); If you see the screenshot below, the installation is successful.
6: The problem with Eclipse is, first of all, configuring Eclipse. Two screenshots will be fine, look carefully below:
7: As long as the top 2 screenshots are configured, you can then build I Project under Eclipse (to make this project directory a subdirectory below Phproo or a virtual directory that can be accessed directly in eclipse)
8: Create a random php file, hit the breakpoint, and then choose:
Right-click to select this php file->debug as->php Web page,eclipse automatically open this php in the browser, run to the breakpoint appears:
OK, all OK, more simple than Zend Debger configuration ...