Debug Tool-Phpinfo never see the installed Xdebug module inside

Source: Internet
Author: User
Tags phpinfo vars

Follow the tutorials on the web to configure such as:

However, the installed Xdebug module is not always visible in the Phpinfo

Reply content:

Follow the tutorials on the web to configure such as:

However, the installed Xdebug module is not always visible in the Phpinfo

There may be more than one configuration file, it is recommended that you find the Phpinfo page Loaded Configuration File and Additional .ini files parsed find the corresponding php.ini file to configure xdebug . Execution at the command line php --ini can see the configuration files loaded under the CLI, which are likely to be different and not configured incorrectly.

The version of your xdebug is wrong.
1 xdebug commonly used in Var_dump printing format looks convenient
2 optimized code with WINCACHEGRIND analysis
If you're just trying to format a print array, here's your way.

/**
    • 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 a 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.