Skip to content

Commit

Permalink
feature #1451 Enable backtraces in Doctrine profiler (GromNaN)
Browse files Browse the repository at this point in the history
This PR was merged into the main branch.

Discussion
----------

Enable backtraces in Doctrine profiler

I didn't know about this feature. It's very useful to find the origin of a specific query from the doctrine profiler panel.

I think it's a good idea to activate it on symfony/demo, as it allows you to demonstrate this functionality.

<img width="971" alt="image" src="https://github.com/symfony/demo/assets/400034/6aec0f4f-cbf2-4b99-9837-96a9a53c9666">

Commits
-------

97fa789 Enable backtraces in Doctrine profiler
  • Loading branch information
javiereguiluz committed Nov 9, 2023
2 parents 8cb63a5 + 97fa789 commit b19c543
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ when@prod:
adapter: cache.app
doctrine.system_cache_pool:
adapter: cache.system

when@dev:
doctrine:
dbal:
profiling_collect_backtrace: true

0 comments on commit b19c543

Please sign in to comment.