New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DX][Profiler][Doctrine] Show where the query was made #18235
Comments
The only way to do this was to use Blackfire for me and it was not that much efficient time-wise (but still better than crawling all the code). Would be really usefull to debug some bad or massive queries |
@PeterFour It could be optional: only collected when a certain cookie is present. |
@MacDada Well I know I was just saying that even using Blackfire it was not perfect so having a Stacktrace would be probably easier to use, especially because it's already using the Doctrine Profiler Panel |
I've not checked but this is part of DoctrineBundle, not Symfony, right? |
@fabpot You're probably right. |
Just for reference, this feature is already available in Doctrine bundle from v1.11.0: https://symfony.com/blog/new-in-doctrinebundle-1-11-0#store-backtraces-when-profiling-queries (PR: doctrine/DoctrineBundle#954) . You just need to enable it by setting Web search got me here and from this conversation it looks like it may not be available yet. |
It is sometimes tedious to find what caused the exact query, visible in
Doctrine
panel, to be run.It would be cool if next to
Explain query
button there was aShow stacktrace
button. Even if it would be visible only for people with Xdebug enabled.The text was updated successfully, but these errors were encountered: