If debugger not works, firstly check some PHP debugger settings:
Check Xdebug library version
Making sure Xdebug has installed with a compatible library. Open
php.ini
file and check extension
version:
zend_extension="<path to Xdebug extension>" For example: zend_extension = d:\openserver\ospanel\modules\php\PHP_7.1-x64\ext\php_xdebug-2.8.1-7.1-vc14-x86_64.dll
The Windows binaries generally work for every mini release for the mentioned PHP version, although the extension is built against the most current PHP version at that time. The VCx/VSx marker tells with which compiler the extension was built, and Non-thread-safe whether ZTS was disabled. Those qualifiers need to match the PHP version you're using. If you don't know which one you need, please refer to the custom installation instructions.
For Mac & Linux: you still need to add the correct line to
your php.ini
: (don't forget to change the path
and filename to the correct one — but make sure you use the
full path):
zend_extension="/usr/local/php/modules/xdebug.so"
Check URL for debugging
Check URL for debugging and Project home URL parameters on Tools | Preferences | Debuggers | PHP (PHP debugger Settings) settings page or modify Project properties.
Check auto start parameter
When you enable Xdebug auto start in PHP
Settings, you have to provide the Xdebug-specific parameters in the
php.ini
file (otherwise auto-start doesn’t
work):
xdebug.remote_enable = 1