PDT + Xdebug Debug PHP environment:
PHP Version 5.2.9-1
Apache 2.2.11
Mysql5.0
PDT (PHP Development Tools)
Http://www.eclipse.org/pdt/downloads/
Download pdt all-in-ones, and my website is pdt-all-in-one-win32-2.0.0ga.zip.
Http://www.xdebug.org/download.php
Download xdebug, the corresponding php version, because I am php5.2.9
Xdebug does not have the corresponding 5.2.9. Therefore, select 5.2.5 or 5.2.8. (if 5.3.0 has been used before, no configuration is successful)
Php_xdebug-2.0.3-5.2.5.dll or php_xdebug-2.0.4-5.2.8.dll
Put xdebug into the C: \ Program Files \ PHP \ ext Directory
Modify the php. ini configuration and add the xdebug configuration information:
[Xdebug]
; Extension = php_xdebug-2.0.3-5.2.5.dll; it took a long time to debug the breakpoint, the breakpoint does not work, Xdebug must use zend_extension_ts to mount
Zend_extension_ts = "C:/Program Files/PHP/ext/php_xdebug-2.0.3-5.2.5.dll"
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 = "c:/Program Files/PHP/debuginfo"; this directory does not exist by default and must be created manually.
Xdebug. profiler_output_dir = "c:/Program Files/PHP/debuginfo"
Restart apache. For more information about the debugging method, see the following link:
PHP debugging: PHP Debug