Handy bash shortcuts for xdebug

Gary Hocking wrote up some excellent tips on getting xdebug to work smoothly with PHPStorm while developing CLI tools (for example debugging a PHPUnit test). You can read his post here

I tend to work across a collection if environments and projects at once so its helpful for me to enable/disable debugging independent of my IDE. To achieve this I put the following aliases in my ~/.bash_aliases (or ~/.bashrc depending on the system) and it helps me toggle on and off debug.