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.