First step: Go to Eclipse's website to download PHP-ECLIPSE:HTTP://WWW.ECLIPSE.ORG/DOWNLOADS/PACKAGES/ECLIPSE-PHP-DEVELOPERS/HELIOSSR1
Step two: Download Xdebug (located at: http://xdebug.org/download.php, my PHP version is php 5.3.28 Thread Safety, Apach is 2.2.25, port number used 8080), The Xdebug version I downloaded is php_xdebug-2.2.3-5.3-vc9.dll and is placed in the Php/ext directory.
Step three: Find PHP.ini in PHP5 and add the following configuration information to the last side of the file:
Zend_extension = D:\php\ext\php_xdebug-2.2.3-5.3-vc9.dll
; zend_extension_ts = D:\php\ext\php_xdebug-2.2.3-5.3-vc9.dll
; extension = Php_xdebug-2.2.3-5.3-vc9.dll
[Xdebug]
Xdebug.auto_trace = On
Xdebug.show_exception_trace = On
Xdebug.remote_autostart = On
Xdebug.remote_enable = On
Xdebug.collect_vars = On
Xdebug.collect_return = On
Xdebug.collect_params = On
Xdebug.trace_output_dir= "D:/xdebuglog"
Xdebug.profiler_output_dir= "D:/xdebuglog"
Xdebug.profiler_enable=on
Xdebug.remote_host=localhost
xdebug.remote_port=9000
Xdebug.remote_handler=dbgp
It is important to note that if there are other zend_extension_ts in the file, it needs to be commented out, otherwise Apache will not start.
Fourth step: Launch Apache.
Fifth step: Find "PHP Debug" in the properties of Eclipse Project, select "XDebug" in PHP debugger
Sixth step: Again in the windows->preferences inside the configuration of PHP Servers
Seventh step: Again in the windows->preferences inside the configuration of PHP executables
Eighth step: Again in run->debug configurations inside Confirm path mapping configuration and sixth step in the same.
Next, entering the debug interface, you can start setting breakpoints for Debug.
Eclipse for PHP + xdebug build PHP Debug Environment