Skip to content

Instantly share code, notes, and snippets.

@rolfvreijdenberger
Last active February 23, 2016 12:14
Show Gist options
  • Save rolfvreijdenberger/b2d3a229fdbfa5a512ed to your computer and use it in GitHub Desktop.
Save rolfvreijdenberger/b2d3a229fdbfa5a512ed to your computer and use it in GitHub Desktop.
phpunit-xdebug (/usr/local/bin/phpunit-debug)
#!/bin/bash
# /usr/local/bin/phpunit-debug
# a wrapper around phpunit with xdebug enabled for eclipse
# make sure the debug session is started in the debug client (eclipse, netbeans, choose one of the settings below)
# see component diagram on https://en.wikipedia.org/wiki/Xdebug
# export XDEBUG_CONFIG="idekey=ECLIPSE_DBGP"
export XDEBUG_CONFIG="idekey=netbeans-xdebug"
phpunit --colors $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment