Skip to content

Instantly share code, notes, and snippets.

@dasbairagya
Created March 27, 2020 15:49
Show Gist options
  • Select an option

  • Save dasbairagya/9135a8640c384ce2e24f7e021b75a325 to your computer and use it in GitHub Desktop.

Select an option

Save dasbairagya/9135a8640c384ce2e24f7e021b75a325 to your computer and use it in GitHub Desktop.
Xdebug
Install xdebug for linux:
sudo apt-get install php-xdebug
sudo phpenmod xdebug
sudo gedit /etc/php/7.2/mods-available/xdebug.ini
then paste the below code:
zend_extension="xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.show_error_trace = 1
xdebug.remote_autostart = 0
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment