xxxxxxxxxx
vs code, xdebug plugin use UBUNTU
https://xdebug.org/docs/install
//for php 7.4
sudo apt-get install php7.4-xdebug
//The path of your php.ini is shown in your phpinfo() output under "Loaded Configuration File".
sudo nano /etc/php/7.4/apache2/php.ini // for me
//add lines at the end, For Xdebug v3.x.x:
[xdebug]
xdebug.mode = debug
xdebug.start_with_request = yes
//restart ur web server
//Goto xdebug plugin VSCODE to explore
xxxxxxxxxx
// download:
https://xdebug.org/wizard.php
// run command in terminal:
php -i
// and follow below link:
https://www.dorusomcutean.com/install-xdebug-windows-phpstorm/
xxxxxxxxxx
install with https://github.com/xdebug/xdebug
or
sudo apt install php-xdebug
xxxxxxxxxx
//put this in /etc/php/8.2/mods-available/xdebug.ini
zend_extension=xdebug.so
xdebug.mode = debug
xdebug.client_host = 127.0.0.1
;# For PhpStorm set below to 9000 (or update IDE's settings).
xdebug.client_port = 9003
xdebug.start_with_request=yes
xdebug.log="/var/log/xdebug/xdebug.log"
xdebug.idekey = VSCODE
xdebug.discover_client_host=false