How to install xdebug debugger on Mint and PHPstorm

Posted on: Thu, 08/06/2015 - 18:21 By: Darko
Installing xdebug PHP debugger on Linux

Our Drupal expert: Installing xdebug PHP debugger on Linux Mint Vbox

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
    
    
  3. add these 2 lines at the end of the file:

    xdebug.remote_enable=1
    xdebug.remote_connect_back=1
  4. Restart your webserver:

     sudo service apache2 restart
  5. In Chrome install the "Xdebug helper" extension

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

Sharethis