-
-
Save kjohnson/ad2732b6774e9faaa417ee261eefbad2 to your computer and use it in GitHub Desktop.
WP CLI + Xdebug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wpx { | |
export XDEBUG_CONFIG="idekey=WPCLIDEBUG remote_connect_back=1" | |
wp "$@" | |
unset XDEBUG_CONFIG | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this to
~/.bash_aliases
.Use
wpx
instead ofwp
when you want to leverage xdebug with wp-cli commands