sven
4/4/2014 - 2:46 PM

PHP and Xdebug (Notes on OS X, VVV and MAMP)

PHP and Xdebug (Notes on OS X, VVV and MAMP)

PHP and Xdebug

Debugging PHP

Install Xdebug via Homebrew

  1. brew search xdebug
  2. brew install homebrew/php/php56-xdebug

Xdebug and VVV

Toggle Xdebug within vagrant ssh: xdebug_on | xdebug_off

Xdebug and Mamp

Attention: Take care of profiling logs: /Applications/MAMP/tmp

[mail function]
sendmail_path =/usr/sbin/sendmail -t -i -f  yourname@example.com

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php5.6.10/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=/Applications/MAMP/tmp
xdebug.idekey=PHPSTORM