P
P
PendalF892019-03-27 07:14:31
Yii
PendalF89, 2019-03-27 07:14:31

Output local variables when handling errors in Yii2?

I want to display all local variables in the error message. In yii\web\ErrorHandler, you can set the output of global variables using the displayVars property. And how can I make it so that all local variables and class properties are displayed in the error message (roughly speaking, like in xdebug)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2019-03-27
@VladimirAndreev

imkho, in ErrorHandler in any way. it has its own local variables.
only in the method to catch Exception and write down everything that is needed somewhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question