File tree 1 file changed +9
-2
lines changed 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ install the ``profiler`` :ref:`Symfony pack <symfony-packs>` before using it:
15
15
16
16
$ composer require --dev symfony/profiler-pack
17
17
18
- Now browse any page of your application in the development environment to let
18
+ Now, browse any page of your application in the development environment to let
19
19
the profiler collect information. Then, click on any element of the debug
20
20
toolbar injected at the bottom of your pages to open the web interface of the
21
21
Symfony Profiler, which will look like this:
@@ -24,6 +24,13 @@ Symfony Profiler, which will look like this:
24
24
:align: center
25
25
:class: with-browser
26
26
27
+ .. note ::
28
+
29
+ The debug toolbar is only injected into HTML responses. For other kinds of
30
+ contents (e.g. JSON responses in API requests) the profiler URL is available
31
+ in the ``X-Debug-Token-Link `` HTTP response header. Browse the ``/_profiler ``
32
+ URL to see all profiles.
33
+
27
34
Accessing Profiling Data Programmatically
28
35
-----------------------------------------
29
36
@@ -206,7 +213,7 @@ event::
206
213
if (!$this->getKernel()->isDebug()) {
207
214
return;
208
215
}
209
-
216
+
210
217
$request = $event->getRequest();
211
218
if (!$request->isXmlHttpRequest()) {
212
219
return;
You can’t perform that action at this time.
0 commit comments