Skip to content

Instantly share code, notes, and snippets.

@jubianchi
Created January 2, 2012 10:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jubianchi/1550214 to your computer and use it in GitHub Desktop.
Save jubianchi/1550214 to your computer and use it in GitHub Desktop.
Debugger vos script PHP-Cli avec XDebug à la demande
## 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