Tried to install xdebug there is no zend_extension in php.ini file

1.9k views Asked by At

I tried to install xdebug in windows 10. There is no zend_extension in php.ini file. I followed this way:

Download php_xdebug-2.9.5-7.3-vc15-x86_64.dll
Move the downloaded file to
Edit C:\xampp\php\php.ini and add the line.

but I couldn't find zend_extension .

2

There are 2 answers

1
John Conde On

You are adding that line so it won't exist yet.

Your php.ini file should have this added to it:

; XDEBUG Extension
zend_extension = c:\xammp\php\ext\php_xdebug-2.9.5-7.3-vc15-x86_64.dll

Make sure you put that DLL in the ext directory as well.

(I guessed at the path to the PHP extension directory as I do not use xampp.)

0
gsziszi On

Sometimes php drops this error however everything seems fine in phpinfo. Check the phpinfo whether the xdebug session is present.