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

Show trace for database queries #722

Closed
aik099 opened this issue Oct 22, 2017 · 3 comments
Closed

Show trace for database queries #722

aik099 opened this issue Oct 22, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@aik099
Copy link

aik099 commented Oct 22, 2017

When viewing query in debug toolbar it would be useful to see what code actually caused the query to be executed.

Here is how I see this implemented:

  1. when query is recorded by Web Profiler do a debug_backtrace and remove all entries coming from Doctrine itself to find only entries that user code (or it's dependency library) made
  2. in the query list show 1st entry (the line that made Doctrine call) with a link to opening it in the ide
  3. add link that via AJAX call would show full stack trace (as done with explain now)

I saw similar functionality in Laravel DebugBar and thought that it can be helpful in here as well.

@ostrolucky
Copy link
Member

@kimhemsoe
Copy link
Member

Closing as "wont fix" Take a look the linked PRs and take it from there. Maybe someday if dbal get support for it.

@ostrolucky
Copy link
Member

Implemented in #954

@ostrolucky ostrolucky added this to the 1.11.0 milestone May 10, 2019
@ostrolucky ostrolucky self-assigned this May 10, 2019
@alcaeus alcaeus removed the Won't Fix label May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants