I have a problem. I would like to log the backtrace in a specific case in a log-file. debug_print_backtrace() builds a correct string for my purposes but debu
debug_print_backtrace()
debu
To add on to the answer given by @HoldOffHunger, the following would have been sufficient for logging purpose:
$this->log(print_r(debug_backtrace(), true));