show db queries running in console command to yii2 debug panel

I would like to track db queries running in Yii2 console application []

how do I view them in yii2 debug [ ] ?

I can only view normal web request, not console. Found nothing on the net or from official documentations.


I had same issue and after i asked yii2 devs about it they replied that its not supported and not suppose to. so i thought something like "pff, sure" and here it is:

I would be rly happy about any feedbacks. It can be paying my attention to lame solutions or etc.