I want to get backtrace information for php errors in drush.

Tried out the following patch - http://drupal.org/node/1158322#comment-6249880. Its shows the backtrace info as message(while using browser), but I'm not getting these messages in drush

closed as off-topic by kiamlaluno Aug 14 '13 at 0:23

  • This question does not appear to be about Drupal within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    You could install xdebug to get stack traces. anilsagar.com/blog/debug-drupal-using-xdebug-eclipse-and-wamp – greg_1_anderson Oct 5 '12 at 21:43
  • Bugs / feature requests should be reported in the issue queue for the involved module. – kiamlaluno Aug 14 '13 at 0:23
  • doesn't seem off topic according to the scope defined in the help center. Firstly: "Questions are acceptable as long as they require specific Drupal expertise to be answered." Secondly, although the scope states that you should raise issues on Drupal.org, it doesn't say that you can't raise a question on the same issue. Make the scope clearer, or make it clear why this (good and worthwhile) question is out of scope. – chim Oct 9 '13 at 9:02

This should be posted as a Feature Request in the Drush issue queue. I started that off for you here: http://drupal.org/node/1804600


You can do it the old-school way:

drush_log(print_r(debug_backtrace()), 'error')

Not the answer you're looking for? Browse other questions tagged or ask your own question.