Drupal 8 - raw SQL queries for debugging

By k, 18 October, 2019
/** @var \Drupal\Core\Database\Query\SelectExtender $query */
echo $query->__toString();
var_dump($query->getArguments());