8000 Moved the debug commands below again · symfony/symfony-docs@5187505 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5187505

Browse files
committed
Moved the debug commands below again
1 parent 1336dc9 commit 5187505

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

debug.rst

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,6 @@ cache files, or you can change the extension used by Symfony for these files::
6969

7070
$kernel->loadClassCache('classes', '.php.cache');
7171

72-
Useful Debugging Commands
73-
-------------------------
74-
75-
When developing a large application, it can be hard to keep track of all the
76-
different services, routes and translations. Luckily, Symfony has some commands
77-
that can help you visualize and find the information.
78-
79-
``debug:container``
80-
Displays information about the contents of the Symfony container for all public
81-
services. To find only those matching a name, append the name as an argument.
82-
83-
``debug:config``
84-
Shows all configured bundles, their class and their alias.
85-
86-
``debug:router``
87-
Displays information about all configured routes in the application as a
88-
table with the name, method, scheme, host and path for each route.
89-
90-
``debug:translation <locale>``
91-
Shows a table of the translation key, the domain, the translation and the
92-
fallback translation for all known messages, if translations exist for
93-
the given locale.
94-
95-
.. tip::
96-
97-
When in doubt how to use a console command, open the help section by
98-
appending the ``--help`` option.
99-
10072
Dumping Variables with the VarDumper
10173
------------------------------------
10274

@@ -130,6 +102,34 @@ You can also dump values from inside templates:
130102
{# dumps the variable to the web debug toolbar to not modify the template #}
131103
{% dump myVar %}
132104

105+
Useful Debugging Commands
106+
-------------------------
107+
108+
When developing a large application, it can be hard to keep track of all the
109+
different services, routes and translations. Luckily, Symfony has some commands
110+
that can help you visualize and find the information.
111+
112+
``debug:container``
113+
Displays information about the contents of the Symfony container for all public
114+
services. To find only those matching a name, append the name as an argument.
115+
116+
``debug:config``
117+
Shows all configured bundles, their class and their alias.
118+
119+
``debug:router``
120+
Displays information about all configured routes in the application as a
121+
table with the name, method, scheme, host and path for each route.
122+
123+
``debug:translation <locale>``
124+
Shows a table of the translation key, the domain, the translation and the
125+
fallback translation for all known messages, if translations exist for
126+
the given locale.
127+
128+
.. tip::
129+
130+
When in doubt how to use a console command, open the help section by
131+
appending the ``--help`` option.
132+
133133
.. _Xdebug: https://xdebug.org/
134134
.. _PsySH: http://psysh.org/
135135
.. _REPL: https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop

0 commit comments

Comments
 (0)
0