Header Ads

Install XDebug in php7.2 and ubuntu 18.04 LTS

Install XDebug in php7.2 and ubuntu 18.04 LTS

Install XDebug in php7.2 and ubuntu 18.04 LTS


1, Install XDebug in ubuntu 18.04 LTS

Open terminal:

sudo apt install php-xdebug

3, Open file php and add config xebug

sudo vim /etc/php/7.2/fpm/conf.d/20-xdebug.ini


and paste content:

Config for Xdebug 2

zend_extension=xdebug.so 
xdebug.remote_enable=1


Config for Xdebug 3

zend_extension=xdebug.so
xdebug.mode = debug,develop
xdebug.start_with_request = yes
xdebug.client_host = localhost
xdebug.client_port = 9003
xdebug.idekey = PHPSTORM


4, Enable XDebug

sudo service php7.2-fpm restart

 

5, Check Xdebug work

php -v


And check again xdebug
Thanks!!

 

No comments