PHP + xdebug + eclipse debugging

Source: Internet
Author: User
Configure) configuration 1. Search for [XDebug] in php. ini and set the original configuration information. xdeb

Prepare the environment XAMPP1.8.2 [PHP 5.4.16]; Xdebugv2.2.3; Eclipse for PHPDevelopers (http://archive.eclipse.org/technology/epp/downloads/release/galileo/SR2/eclipse-php-galileo-SR2-win32.zip) configuration 1 in php. ini search [XDebug], set the original configuration information; xdeb


Prepare the environment

XAMPP1.8.2 [PHP 5.4.16];

Xdebug v2.2.3;

Eclipse for PHPDevelopers

Http://archive.eclipse.org/technology/epp/downloads/release/galileo/SR2/eclipse-php-galileo-SR2-win32.zip)

Configuration

1. Search for [XDebug] in php. ini and set the original configuration information.

; Xdebug. remote_enable = 1
; Xdebug. remote_host = "localhost"
; Xdebug. remote_port = 9000
; Xdebug. remote_handler = "dbgp"
; Zend_extension = "C: \ xampp \ php \ xdebug \ php_xdebug-2.1.0-5.2-vc6.dll"

Replace with (according to your environment)


Zend_extension = "C: \ xampp \ php \ ext \ php_xdebug-2.2.3-5.4-vc9.dll"
Xdebug. profiler_append = 0
Xdebug. profiler_enable = 1
Xdebug. profiler_enable_trigger = 0
Xdebug. profiler_output_dir = "C: \ xampp \ tmp"
Xdebug. profiler_output_name = "cachegrind. out. % t-% s"
Xdebug. remote_enable = 1
Xdebug. remote_handler = "dbgp"
Xdebug. remote_host = "127.0.0.1"
Xdebug. remote_port = 9000
Xdebug. trace_output_dir = "C: \ xampp \ tmp"


2. Restart apache


3. Go to eclipse, select the file to debug, right-click debug as-> debugconfigrations, and open the configuration page.

, According to the Red Circle Configuration

Click debug to start php debuging ......


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.