Question Details

No question body available.

Tags

php xdebug php-extension

Answers (1)

May 4, 2026 Score: 2 Rep: 40,152 Quality: Medium Completeness: 80%

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


In PHP, extensions come in two types

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

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


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

zendextension=opcache
zendextension="D:\...\phpxdebug.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