Configure Eclipse PHP xdebug_php Tutorial

Source: Internet
Author: User
The first step, if you are not sure which xdebug.dll to download, please output phpinfo (), the page all the information, copied to this site, http://xdebug.org/wizard.php according to the information given to download the corresponding DLL.

The second step is to drop the downloaded DLL into the ext extension directory in the PHP directory.

In the third step, open the php.ini file and copy the following code to the last line.

[xdebug];extension=php_xdebug.dllzend_extension= "E:\www\php54\ext\php_xdebug.dll"; extension = "E:\www\php54\ext\ Php_xdebug.dll "xdebug.profiler_enable=onxdebug.trace_output_dir=" E:\www\xdebug "       xdebug Data file directory xdebug.profiler_output_dir= "E:\www\xdebug"    ; xdebug data file directory Xdebug.max_nesting_level = 10000              ; If set too small , the function has recursive call itself too many times will be reported over the maximum number of nested errors xdebug.remote_enable=true                     ; Xdebug allow the remote IDE to connect xdebug.remote_host=127.0.0.1                  ; allow the IP address of the connected Zend Studio xdebug.remote_port=9000                       ; reverse connection Zend The port XDEBUG.REMOTE_HANDLER=DBGP used by Studio                    ; application-layer communication protocol for Zend Studio remote debugging

When configuring the extension DLL to distinguish between the TS or which version, especially this line zend_extension= "E:\www\php54\ext\php_xdebug.dll", Most can see in the phpinfo output xdebug but not in the development tool, it may be the reason for this, restart your Web server.

Next Configure the development tool, I use Eclipse, the operation is as follows:

Preferences-php Window

First select PHP executables-> Add, a configuration box will pop up, such as:

Name can be taken casually.

Executables path is php.exe in the PHP directory.

PHP INI is a php.ini in the PHP directory

PHP Debugger Mode Selection Xdebug

Save.

Next, in debug, select the appropriate configuration:

The last step, reboot.

http://www.bkjia.com/PHPjc/440245.html www.bkjia.com true http://www.bkjia.com/PHPjc/440245.html techarticle The first step, if you are not sure which xdebug.dll to download, please output phpinfo (), the page all the information, copied to this site, http://xdebug.org/wizard.php follow the letter given ...

  • 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.