In many cases, Xdebug is not suitable for debugging as it involves clicks to run to a particular line of codes. I want to use something that is similar to cak
Xdebug
cak
Yii::trace(VarDumper::dumpAsString($array));
An example of customized log class is given below.
Example:
Log.e("Copying the Estimate data failed. Model::getError(): ", $model->getErrors());