XDebug on Windows
XDebug does not work like other extensions for PHP. It must be loaded as a zend extension, and is also incompatible with the Zend Optimizer.
Steps to get XDebug Working
- Verify that the extension=php_xdebug.dll is disabled, as shown below.
;extension=php_win32service.dll ;extension=php_win32std.dll ;extension=php_xdebug.dll ;extension=php_xmlreader.dll
- Add a zend_extension_ts line in the [Zend] section of the php.ini file. This is located at the end of the file normally. Also, you will need to disable the zend optimizer. See the following example.
[Zend] ;zend_extension_ts = "c:\xampp\php\ext\php_dbg.dll" zend_extension_ts = "c:\xampp\php\ext\php_xdebug.dll" zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll" ;zend_extension_manager.optimizer_ts = "C:\xampp\php\zendOptimizer\lib\Optimizer" zend_optimizer.enable_loader = 0 zend_optimizer.optimization_level=15 ;zend_optimizer.license_path =
The two key lines are zend_extension_ts = [...]\ext\php_xdebug.dll and the line ;zend_extension_manager.optimizer_ts...