Debug extension version 2.1.21 was released.
This release adds an ability to collect debug data in console applications. In order to do so, add the following to console application config:
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
];
See the CHANGELOG for details.