You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features.md
+131-1Lines changed: 131 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,134 @@ And the default collectors:
31
31
- MemoryCollector
32
32
- ExceptionsCollector
33
33
34
-
It also provides a facade interface (Debugbar) for easy logging Messages, Exceptions and Time
34
+
It also provides a facade interface (Debugbar) for easy logging Messages, Exceptions and Time.
35
+
36
+
To enable or disable any of the collectors, set the configuration to `true` or `false`. Some collector have additional options in the configuration.
37
+
38
+
39
+
## AJAX Requests
40
+
41
+
Laravel Debugbar tracks AJAX/XHR request in your application. You can open these in the dropdown menu, or click the history button to show the requests.
42
+
43
+
Tip: you can disable he 'autoshow' toggle in the history tab to keep the current dataset active, instead of switching.
| The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
55
+
| you can use this option to disable sending the data through the headers.
56
+
|
57
+
| Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools.
58
+
|
59
+
| Note for your request to be identified as ajax requests they must either send the header
60
+
| X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header.
61
+
|
62
+
| By default `ajax_handler_auto_show` is set to true allowing ajax requests to be shown automatically in the Debugbar.
63
+
| Changing `ajax_handler_auto_show` to false will prevent the Debugbar from reloading.
64
+
*/
65
+
66
+
'capture_ajax' => true,
67
+
'add_ajax_timing' => false,
68
+
'ajax_handler_auto_show' => true,
69
+
'ajax_handler_enable_tab' => true,
70
+
71
+
```
72
+
73
+
## History browser
74
+
75
+
By default, Debugbar stores request history. This is useful for non-browser requests, redirects or external requests. You can open it with the 'folder' button (3rd from the right).
76
+
77
+
With the default settings, storage is only visible from your local IP. To enable browsing the history, change the `storage.open` setting or `DEBUGBAR_OPEN_STORAGE` env key.
78
+
79
+
!!! warning
80
+
81
+
Do not open the history outside your local environment, to avoid leaking credentials or sensitive data.
'path' => storage_path('debugbar'), // For file driver
108
+
'connection' => null, // Leave null for default connection (Redis/PDO)
109
+
'provider' => '', // Instance of StorageInterface for custom driver
110
+
'hostname' => '127.0.0.1', // Hostname to use with the "socket" driver
111
+
'port' => 2304, // Port to use with the "socket" driver
112
+
],
113
+
```
114
+
115
+
## Editor integration
116
+
117
+
Debugbar can open links to views, exception, routes etc in your Editor directly, if you set this up correctly. By default this should just work for PHPStorm on local development. You can change your editor by setting `DEBUGBAR_EDITOR` or the config.
118
+
If your working in a remote host or docker, you can change the mapping between remote and local paths.
0 commit comments