PDT + Xdebug Debug PHP

Source: Internet
Author: User
Tags php debug
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.