779 B
779 B
XDebug
Install
dnf install php82-php-pecl-xdebug3
Config
/etc/php.d/90-xdebug.ini
[XDebug]
zend_extension=/opt/remi/php82/root/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.mode=develop,gcstats,coverage,profile,debug
xdebug.client_host=localhost
xdebug.client_port=9003
xdebug.idekey="NVIM"
xdebug.log=/tmp/xdebug.log
; always initiate a debugging session
xdebug.start_with_request=yes
; activates if a "trigger" is present
;xdebug.start_with_request=trigger
To signal the debugger to initiate connections, Xdebug will look whether the XDEBUG_SESSION environment variable is present.
export XDEBUG_SESSION=1
Test
php --info
debug
- port 9003 must not been blocked