File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,34 @@ current PHP SAPI:
91
91
.. versionadded :: 4.1
92
92
The ``dd() `` helper method was introduced in Symfony 4.1.
93
93
94
+ The Dump Server
95
+ ---------------
96
+
97
+ .. versionadded :: 4.1
98
+ The dump server was introduced in Symfony 4.1.
99
+
100
+ The ``dump() `` function outputs its contents in the same browser window or
101
+ console terminal as your own application. Sometimes mixing the real output
102
+ with the debug output can be confusing. That's why this component provides a
103
+ server to collect all the dumped data.
104
+
105
+ Start the server with the ``server:dump `` command and whenever you call to
106
+ ``dump() ``, the dumped data won't be displayed in the output but sent to that
107
+ server, which outputs it to its own console or to an HTML file:
108
+
109
+ .. code-block :: terminal
110
+
111
+ # displays the dumped data in the console:
112
+ $ ./bin/console server:dump
113
+ [OK] Server listening on tcp://0.0.0.0:9912
114
+
115
+ # stores the dumped data in a file using the HTML format:
116
+ $ ./bin/console server:dump --format=html > dump.html
117
+
118
+ Inside a Symfony application, the output of the dump server is configured with
119
+ the :ref: `dump_destination option <configuration-debug-dump_destination >` of the
120
+ ``debug `` package.
121
+
94
122
DebugBundle and Twig Integration
95
123
--------------------------------
96
124
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ max_string_length
49
49
This option configures the maximum string length before truncating the
50
50
string. The default value (``-1 ``) means that strings are never truncated.
51
51
52
+ .. _configuration-debug-dump_destination :
53
+
52
54
dump_destination
53
55
~~~~~~~~~~~~~~~~
54
56
You can’t perform that action at this time.
0 commit comments