Created
January 2, 2012 10:33
-
-
Save jubianchi/1550214 to your computer and use it in GitHub Desktop.
Debugger vos script PHP-Cli avec XDebug à la demande
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
## Lancez cette commande dans un tertminal | |
echo -e '#!/bin/sh\nphp -dxdebug.remote_autostart=On $*' | sudo tee /usr/local/bin/xdebug && sudo chmod +x /usr/local/bin/xdebug | |
##Usage : | |
#Debugger un script PHP | |
xdebug mon_script.php | |
#Debugger une task Symfony | |
xdebug ./symfony ns:command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment