With Wordpress I use the Query Monitor plugin to debug sites, it's very similar to Symfony WDT. What I found very interesting is the plugin can trace the caller of every SQL query :
Is there any similar tool for Symfony WDT ? I found a similar question but It's very old (I'm using Symfony 5) and is a bit far from what I'm looking for
Asked
Active
Viewed 159 times
0

Sami
- 717
- 6
- 28
-
Have you tried the answers to the question you linked... or this one: https://stackoverflow.com/questions/29470738/how-to-get-doctrine-to-log-queries-in-symfony2 – Andy Preston Mar 08 '23 at 09:56
-
The question I linked is a bit far from what I'm looking for, I'd like to see callers without altering my current code. The question you linked is completely different : it's how to log all SQL queries, nothing about callers ! – Sami Mar 08 '23 at 11:39
1 Answers
0
Found it :)
in doctrine.yaml
I've added this :
doctrine:
dbal:
...
profiling_collect_backtrace: true
New link added in Query Metrics :
Doc is here : https://www.doctrine-project.org/projects/doctrine-bundle/en/latest/configuration.html
Found the solution here : Symfony Profiler Query Stack Trace

Sami
- 717
- 6
- 28