Debug Drush in Eclipse
I've been debugging Drush using Geben on Emacs for a while now, which is a PITA to be honest. So here's how I finally got XDebug working for Drush in Eclipse.
- Create a new PHP project, use your drush directory as the source (e.g., ~/.drush/drush)

- Run -> Debug Configurations...
- Create a new PHP Script Configuration, call it Drush
- Under the PHP Script tab, use these options:
- Under the PHP Script Arguments tab, type in the Drush command you'd like to run. Since you're not running this from the command line, you'll need to include the -r switch to emulate running it from a directory

- Restart Eclipse. Shouldn't be necessary, but sometimes XDebug craps out after this setup, and restarting fixes it.
If anyone ould like more detailed instructions, comment and I'll ammend the post.


winter coat
I live in China and I have read many articles and find that it is really a great articl shared. Thank you very much ! I have bookmarked your site !
moncler winter coats on sale
Northface winter jackets on sale
Drush outside the project path?
Thanks for the useful write-up. I followed it all the way up to the point where I need to choose the path to the script (drush.php), only my drush is not inside the Eclipse project. It is located elsewhere on the system. Is it still possible to use this approach? I can't see a way to select a script that exists outside the project!
Incidentally for this
Incidentally for this specific "drush sup" example, you'll also want to pass in the -y flag (for "assume yes") so it doesn't ask you questions you can't answer in Eclipse.