Debugging Tool-phpinfo does not see the installed xdebug module

Source: Internet
Author: User
According to the tutorial on the network, the configuration is as follows: However, the xdebug module installed in phpinfo is never displayed.

According to the tutorial on the network, the configuration is as follows:

However, the xdebug module installed in phpinfo is never displayed.

Reply content:

According to the tutorial on the network, the configuration is as follows:

However, the xdebug module installed in phpinfo is never displayed.

There may be multiple configuration files. we recommend you find them on the phpinfo page.Loaded Configuration FileAndAdditional .ini files parsedFind the correspondingphp.iniFile configurationxdebug. Runphp --iniThe configuration files loaded under cli may be different.

Your xdebug version is not correct.
1 xdebug is often used to print and format var_dump.
2. use wincachegrind to analyze and optimize the code
If you just want to format and print the array, give you a method

/**
    • Php output debugging

    • @ Param unknown $ vars

    • @ Param string $ label

    • @ Param string $ return

    • @ Return string | NULL
      */

    1. Static function dump ($ vars, $ label = '', $ return = false ){

         if (ini_get('html_errors')) {       $content = "
      \n";       if ($label != '') {           $content .= "{$label} :\n";       }       $content .= htmlspecialchars(print_r($vars, true));       $content .= "\n
      \n"; } else { $content = $label . " :\n" . print_r($vars, true); } if ($return) { return $content; } echo $content; return null;

      }
      You can define it as global.

    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.