Skip to content

Instantly share code, notes, and snippets.

@heineck
Created January 30, 2016 02:54
Show Gist options
  • Save heineck/d70ca978a617031884eb to your computer and use it in GitHub Desktop.
Save heineck/d70ca978a617031884eb to your computer and use it in GitHub Desktop.

Configure XDebug module for PHP

Download XDebug module using pecl

    pecl download xdebug

Uncompress xdebug

    tar -zxvf <xdebug-version>.tar

Go to xdebug directory

    cd <xdebug-version>

Run configure to generate configuration rules to compilation

./configure --enable-xdebug

Run make to compile and install xdebug.so - sudo make -sudo make install Open php.ini and add the following line:

;[XDebug]
;; Only Zend OR (!) XDebug
zend_extension="/Applications/mappstack-5.5.16-0/php/lib/php/extensions/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp

Restart apache.






    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment