No xdebug in phpinfo ()

I added the following lines in php.ini

[XDebug]
zend_extension = C:\PROGRA~1\PHP5\ext\php_xdebug-2.1.0-5.3-vc9.dll
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000

The version is php_xdebug-2.1.0-5.3-vc9.dllobtained through the page http://www.xdebug.org/find-binary.php .

But in the output phpinfo()there is no mention of the string 'xdebug'.

What could be wrong?

(This is my second fight with php-xdebug, for the first time I refused . If you have any other suggestions regarding debugging, add them also, possibly as comments to the question. I would like to follow the scenario of work under windows: "Set a breakpoint, run my script, it stops at a breakpoint, and I see the value of some variable." Thanks)

UPDATE

Restarting Apache does not solve the problem. A message appears in the log file:

Apache/2.2.14 (Win32) PHP/5.3.1 -

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

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

P.S. xdebug.

+8

php -m

php.ini, , xdebug .

+10

(vscode, xampp). https://xdebug.org/wizard.php phpinfo().

xdebug.dll "ext".

php.ini

[XDebug]
zend_extension="php_xdebug-2.5.4-7.0-vc14.dll"
xdebug.remote_enable=1
xdebug.remote_autostart=1
+6

, . php , php DLL . , :

zend_extension="php_xdebug-2.2.5-5.5-vc11.dll"
+5
+3

( ) . Xampp Windows 7.

. "php_xdebug-2.2.5-5.5-vc11.dll" "php_xdebug.dll" .

-: Xampp Xdebug, , php.ini

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

apache, . xampp xdebug , , , .

+2

- . / .

PHP IIS. , IIS_USER .

0

php.symlink C:\wamp64\bin\apache\apache2.4.23\bin, php.ini C:\wamp64\bin\php\php5.6.25, , , , php.ini .

php.symlink open cmd C:\wamp64\bin\apache\apache2.4.23\bin ():

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

php.ini php

0

2019 , , Xdebug Xdebug

, Xdebug PHP php ini , Xdebug phpInfo . . php -m , Xdebug Zend. ..

0

, , apache, php.ini, , , .

0

Source: https://habr.com/ru/post/1766535/


All Articles