Skip to content

Instantly share code, notes, and snippets.

@thelebster
Forked from hofmannsven/README.md
Created June 30, 2017 18:35
Show Gist options
  • Select an option

  • Save thelebster/dd6106b36e6c3b832d7b7259eb707bb4 to your computer and use it in GitHub Desktop.

Select an option

Save thelebster/dd6106b36e6c3b832d7b7259eb707bb4 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment