Xdebug.ini Configuration For XDebug Version 3
Settings for XDebug version 3 on the Docker server are specified in xdebug.ini. [1], [2]
zend.extension="/usr/local/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so" xdebug.mode=debug xdebug.start_with_request=yes xdebug.remote_port=9003 xdebug.session="PHPSTORM" xdebug.remote_enable=1 xdebug.client_host=192.168.123.107 xdebug.remote_log="/tmp/xdebug.log"
zend.extensionis the path to the xdebug library that is installed viaDockerfile. If the version of XDebug changes, this path will need to be updated to match the installed library file.xdebug.modeenables XDebug.xdebug.start_with_requeststarts the debugger.xdebug.remote_portspecifies the XDebug port. The default for XDebug version 3 is 9003. This must match the PHPStorm setting under Preferences > PHP > Debug > XDebug > Debug Port. (The default port for version 2 was 9000.)xdebug.sessionspecifies the IDE key used the IDE to connect to XDebug. This matches the`IDE Key` setting in PHPStorm's PHP Remote Debug Run Configuration. (xdebug.sessionreplacesxdebug.idekeyfor XDebug 2.)xdebug.client_hostspecifies the IP of the client running the IDE. (xdebug.client_hostreplacesxdebug.remote_hostfor XDebug 2.)
See xdebug.ini settings for XDebug version 2 for legacy settings.
- ↑ XDebug Settings -- XDebug Docs
- ↑ XDebug Upgrade Guide -- XDeubg Docs