Eclipse for PHP + xdebug build PHP Debug Environment

Source: Internet
Author: User
Tags php debug php debugger vc9

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

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.