How to install xdebug debugger on Mint and PHPstorm

  • Posted on: 6 August 2015
  • By: Darko

HOW TO:

  1. Install xdebug:

    In linux command line type

    sudo apt-get install php5-xdebug

  2. Edit your php.ini file:

    sudo gedit /etc/php5/apache2/php.ini

    add these 2 lines at the end of the file

    xdebug.remote_enable=1
    xdebug.remote_connect_back=1

  3. Restart your webserver:

     sudo service apache2 restart

  4. In Chrome install the "Xdebug helper" extension
     
  5. Add links to Chrome, go to:
    https://www.jetbrains.com/phpstorm/marklets/
    and click on Xdebug-> generate
     
  6. Simply drag and drop all generated links to your Chrome toolbar
     
  7. In Phpstorm, top right corner, toggle the “Start Listening for PHP Debug Connections” button