4

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

3
  • 1
    You could install xdebug to get stack traces. anilsagar.com/blog/debug-drupal-using-xdebug-eclipse-and-wamp Commented Oct 5, 2012 at 21:43
  • Bugs / feature requests should be reported in the issue queue for the involved module.
    – apaderno
    Commented Aug 14, 2013 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
    Commented Oct 9, 2013 at 9:02

2 Answers 2

2

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

2
1

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.