Skip to content

Instantly share code, notes, and snippets.

@jpswade
Forked from rolfvreijdenberger/phpunit-xdebug
Last active February 23, 2016 13:15
Show Gist options
  • Save jpswade/d82392d62bd25b43c6ce to your computer and use it in GitHub Desktop.
Save jpswade/d82392d62bd25b43c6ce to your computer and use it in GitHub Desktop.
xphpunit (/usr/local/bin/xphpunit)
#!/bin/bash
#curl -O https://gist.githubusercontent.com/jpswade/d82392d62bd25b43c6ce/raw/59a7e9c990ba9979f0967de049aea23f76e2bb2d/xphpunit /usr/local/bin/phpunitx && chmod 755 /usr/local/bin/phpunitx
# 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