Skip to content

Instantly share code, notes, and snippets.

@hofmannsven
Last active September 17, 2023 20:18
Show Gist options
  • Select an option

  • Save hofmannsven/9976152 to your computer and use it in GitHub Desktop.

Select an option

Save hofmannsven/9976152 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 [email protected]
[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