No xdebug in phpinfo()

后端 未结 11 1443
故里飘歌
故里飘歌 2020-12-19 01:03

I have added following lines into php.ini

[XDebug]
zend_extension = C:\\PROGRA~1\\PHP5\\ext\\php_xdebug-2.1.0-5.3-vc9.dll
xdebug.remote_enable=on
xdebug.remo         


        
相关标签:
11条回答
  • 2020-12-19 01:05

    check the top of the output of

    php -m
    

    for me it showed an error in php.ini, after solving that xdebug was loaded.

    0 讨论(0)
  • 2020-12-19 01:08

    This worked for me (vscode, xampp) Go to https://xdebug.org/wizard.php and paste the contents of phpinfo()

    Then download the right xdebug.dll and place it in your 'ext' folder.

    Add the following to your php.ini

    [XDebug]
    zend_extension="php_xdebug-2.5.4-7.0-vc14.dll"
    xdebug.remote_enable=1
    xdebug.remote_autostart=1
    
    0 讨论(0)
  • 2020-12-19 01:08

    in my case the issue was the php.symlink file in the C:\wamp64\bin\apache\apache2.4.23\bin folder , this file links to the php.ini file existed in C:\wamp64\bin\php\php5.6.25 but apparently it wasn't working so i've deleted it and copy paste the actual php.ini to the same folder and it worked.

    if you want to return the php.symlink back open cmd in the C:\wamp64\bin\apache\apache2.4.23\bin and write the following (windows):

    mklink php.ini C:\wamp64\bin\php\php5.6.25\php.ini

    replace the path to point to your php.ini inside your php file

    0 讨论(0)
  • 2020-12-19 01:12
    zend_extension = C:\PROGRA~1\PHP5\ext\php_xdebug-2.1.0-5.3-vc9.dll
    

    should be replaced by

    zend_extension="C:\PROGRA~1\PHP5\ext\php_xdebug-2.1.0-5.3-vc9.dll"
    

    P.S. Will e-mail xdebug guys.

    0 讨论(0)
  • 2020-12-19 01:17

    Just for the newbees:

    If you want to check if the .dll, specified in the php.ini is loading properly:

    1. Add php to the Windows Runtime Directory. For win10, refer to this post https://www.forevolve.com/en/articles/2016/10/27/how-to-add-your-php-runtime-directory-to-your-windows-10-path-environment-variable/

    2. From the Windows command prompt, type php -m and check if any error is displayed.

    0 讨论(0)
  • 2020-12-19 01:20

    I was just struggling with this myself and found a way to identify (and solve) the problem. It works on Xampp and Windows 7 at least.

    In my case the problem was dots. Renaming "php_xdebug-2.2.5-5.5-vc11.dll" to "php_xdebug.dll" did the job.

    Another pro-tip is that newer versions of Xampp have Xdebug built-in, so you don't need to donwload it, just edit php.ini with:

    zend_extension = "path\to\php\ext\php_xdebug.dll"
    xdebug.remote_enable = on
    xdebug.remote_handler = dbgp
    xdebug.remote_host = 127.0.0.1 (or localhost)
    xdebug.remote_port = 9000
    xdebug.remote_mode = req
    

    Then restart the apache and it should work. The advantage of using xampp built-in xdebug is that it's most likely the right version.

    0 讨论(0)
提交回复
热议问题