PHP Debugging Tools xdebug Installation Configuration Tutorial

Source: Internet
Author: User
Tags naming convention php debugging tools phpinfo

Http://www.cnblogs.com/qiantuwuliang/archive/2011/01/23/1942382.html

xdebug Installation Tips : If you do not know the installed PHP version, you can see through the phpinfo () function, while Xdebug also provides Phpinfo output information analysis tool to help you analyze how to install Xdebug, Just copy and submit the Phpinfo output information, address: Xdebug phpinfo Information Analysis address--http://xdebug.org/wizard.php

Instructions
    1. Download xdebug-2.2.6.tgz
    2. Unpack the downloaded file withtar -xvzf xdebug-2.2.6.tgz
    3. Run:cd xdebug-2.2.6
    4. Run: (See the FAQs If you don't have any phpize phpize .

      As part of the its output it should show:

      Configuring for: ... Zend Module API No:      20090626Zend Extension API No:   220090626

      If It does not, you are using the wrong phpize . Please follow this FAQ entry and skip the next step.

    5. Run:./configure
    6. Run:make
    7. Run:cp modules/xdebug.so /usr/lib/php5/20090626+lfs
    8. Update and change the line /etc/php5/fpm/php.ini
      zend_extension = /usr/lib/php5/20090626+lfs/xdebug.so
    9. Restart the Webserver

      Xdebug section configuration Options Description

        Xdebug.auto_trace = 1

      Whether to allow Xdebug trace function calls, trace information is stored as a file, the default value is 0

        Collect_params = 1

      Whether the Xdebug trace function parameter is allowed, the default value is 0

        Xdebug.collect_return = 1

      Whether the Xdebug trace function return value is allowed, the default value is 0

        xdebug.profiler_enable = 1

      Open Xdebug Performance Analyzer, stored as a file, this configuration cannot be configured with the Ini_set () function, the default value is 0

        Xdebug.profiler_output_dir

      Where the profiling file is stored, the default value is/tmp

        Xdebug.profiler_output_name

      A naming convention for profiling files, with a default value of cachegrind.out.%p

        Xdebug.trace_output_dir

      function call trace information output file directory, default value is/tmp

        Xdebug.trace_output_name

      function call trace information output file naming convention, default is trace.%c

PHP Debugging Tools xdebug Installation Configuration Tutorial

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.