Why do I need `zend_extension = xdebug`?

14 hours ago 1
ARTICLE AD BOX

Because the wizard isn't that smart and doesn't recognize that path as the xdebug extension.

gre_gor's user avatar

You don't need to add zend_extension = xdebug, if your current full path line is already working.


In PHP, extensions come in two types

extension = ... -> normal PHP extensions zend_extension = ... -> Zend Engine extensions (low level hooks into the PHP engine)

Xdebug is a Zend extension, so it must be loaded using zend_extension, not extension.


What you have is correct. According to the doc, Xdebug must be loaded after OPCache. So make sure this is in order

zend_extension=opcache zend_extension="D:\...\php_xdebug.dll"

Why does the wizard suggest it

The Xdebug Installation Wizard gives generic advice, assuming you might install via package manager or PHP already knows where Xdebug is located

So it suggests zend_extension = xdebug

That only works if The DLL/SO is in PHP's default extension directory and PHP can resolve it automatically

Abdulla Nilam's user avatar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.

Read Entire Article