The local variables in error handling in Yii 2?

Want to bring all the local variables in the error message. Yii\web\ErrorHandler output can be global variables using properties displayVars. How do I make it so that the error message is output all the local variables and properties of the class (roughly as in xdebug'e)?
March 19th 20 at 08:45
1 answer
March 19th 20 at 08:47
IMHO, ErrorHandler does. it has its own local variables.
the only method to catch the Exception and write somewhere everything you need.
Now, if the function debug_backtrace(true) gave not only results, but also variables, then it would be possible. Here people asks the same question: - Toy commented on March 19th 20 at 08:50
@Toy, if my grandmother was ### - this would be a grandpa - kaitlyn40 commented on March 19th 20 at 08:53

Find more questions by tags ExceptionsYii