Skip to content
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] Show where the query was made #525

Closed
MacDada opened this issue Mar 22, 2016 · 3 comments
Closed

[DX][Profiler] Show where the query was made #525

MacDada opened this issue Mar 22, 2016 · 3 comments

Comments

@MacDada
Copy link

MacDada commented Mar 22, 2016

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 a Show stacktrace button. Even if it would be visible only for people with Xdebug enabled.

@stof
Copy link
Member

stof commented Mar 22, 2016

This has already been suggested in the past, and the change necessary for that in DBAL has been rejected. I will let you read #275 and doctrine/dbal#535 for the discussion about this.

I'm closing this issue as rejected.

@stof stof closed this as completed Mar 22, 2016
@sustmi
Copy link
Sponsor

sustmi commented Dec 6, 2019

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: #954) .

You just need to enable it by setting doctrine.dbal.profiling_collect_backtrace: true (I set it to '%kernel.debug%' instead because it is the default value of profiling setting).

Web search got me here and from this conversation it looks like it may not be available yet.

@morphles
Copy link

@sustmi you'r comment is just amazing! Super duper thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants