Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6ea57b

Browse files
committed
feature symfony#7023 Added useful debug commands in the debug documentation (hiddewie)
This PR was merged into the 2.7 branch. Discussion ---------- Added useful debug commands in the debug documentation Issue symfony#6342. Added a small list of available and useful debug commands on the debug page. Commits ------- c27fc68 Update controllers.rst
2 parents 89d7561 + c27fc68 commit c6ea57b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

debug/debugging.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,29 @@ locations. To avoid problems, you can either tell your IDE to ignore the PHP
5959
cache files, or you can change the extension used by Symfony for these files::
6060

6161
$kernel->loadClassCache('classes', '.php.cache');
62+
63+
Useful Debugging Commands
64+
-------------------------
65+
66+
When developing a large application, it can be hard to keep track of all the
67+
different services, routes and translations. Luckily, Symfony has some commands
68+
that can help you visualize and find the information.
69+
70+
``debug:container``
71+
Displays information about the contents of the Symfony container for all public
72+
services. To find only those matching a name, append the name as an argument.
73+
74+
``debug:config``
75+
Shows all configured bundles, their class and their alias.
76+
77+
``debug:router``
78+
Displays information about all configured routes in the application as a
79+
table with the name, method, scheme, host and path for each route.
80+
81+
``debug:translation <locale>``
82+
Shows a table of the translation key, the domain, the translation and the
83+
fallback translation for all known messages, if translations exist for
84+
the given locale.
85+
86+
When in doubt how to use a console command, open the help section by appending
87+
the ``--help`` option.

0 commit comments

Comments
 (0)