This bundle adds a stack trace to each doctrine query in the profiler.
$ composer require sidus/doctrine-debug-bundle "~1.0"
<?php
use Symfony\Component\HttpKernel\Kernel;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
];
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
// ...
if ('dev' === $this->getEnvironment()) {
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
// HERE!
$bundles[] = new Sidus\DoctrineDebugBundle\SidusDoctrineDebugBundle();
}
}
return $bundles;
}
// ...
}
Doesn't require xdebug to be installed anymore.
Fixing compatibility with Web Profiler 4