|
@@ -0,0 +1,332 @@
|
|
1
|
+<?php
|
|
2
|
+
|
|
3
|
+return [
|
|
4
|
+
|
|
5
|
+ /*
|
|
6
|
+ |--------------------------------------------------------------------------
|
|
7
|
+ | Debugbar Settings
|
|
8
|
+ |--------------------------------------------------------------------------
|
|
9
|
+ |
|
|
10
|
+ | Debugbar is enabled by default, when debug is set to true in app.php.
|
|
11
|
+ | You can override the value by setting enable to true or false instead of null.
|
|
12
|
+ |
|
|
13
|
+ | You can provide an array of URI's that must be ignored (eg. 'api/*')
|
|
14
|
+ |
|
|
15
|
+ */
|
|
16
|
+
|
|
17
|
+ 'enabled' => env('DEBUGBAR_ENABLED', null),
|
|
18
|
+ 'hide_empty_tabs' => true, // Hide tabs until they have content
|
|
19
|
+ 'except' => [
|
|
20
|
+ 'telescope*',
|
|
21
|
+ 'horizon*',
|
|
22
|
+ ],
|
|
23
|
+
|
|
24
|
+ /*
|
|
25
|
+ |--------------------------------------------------------------------------
|
|
26
|
+ | Storage settings
|
|
27
|
+ |--------------------------------------------------------------------------
|
|
28
|
+ |
|
|
29
|
+ | Debugbar stores data for session/ajax requests.
|
|
30
|
+ | You can disable this, so the debugbar stores data in headers/session,
|
|
31
|
+ | but this can cause problems with large data collectors.
|
|
32
|
+ | By default, file storage (in the storage folder) is used. Redis and PDO
|
|
33
|
+ | can also be used. For PDO, run the package migrations first.
|
|
34
|
+ |
|
|
35
|
+ | Warning: Enabling storage.open will allow everyone to access previous
|
|
36
|
+ | request, do not enable open storage in publicly available environments!
|
|
37
|
+ | Specify a callback if you want to limit based on IP or authentication.
|
|
38
|
+ | Leaving it to null will allow localhost only.
|
|
39
|
+ */
|
|
40
|
+ 'storage' => [
|
|
41
|
+ 'enabled' => true,
|
|
42
|
+ 'open' => env('DEBUGBAR_OPEN_STORAGE'), // bool/callback.
|
|
43
|
+ 'driver' => 'file', // redis, file, pdo, socket, custom
|
|
44
|
+ 'path' => storage_path('debugbar'), // For file driver
|
|
45
|
+ 'connection' => null, // Leave null for default connection (Redis/PDO)
|
|
46
|
+ 'provider' => '', // Instance of StorageInterface for custom driver
|
|
47
|
+ 'hostname' => '127.0.0.1', // Hostname to use with the "socket" driver
|
|
48
|
+ 'port' => 2304, // Port to use with the "socket" driver
|
|
49
|
+ ],
|
|
50
|
+
|
|
51
|
+ /*
|
|
52
|
+ |--------------------------------------------------------------------------
|
|
53
|
+ | Editor
|
|
54
|
+ |--------------------------------------------------------------------------
|
|
55
|
+ |
|
|
56
|
+ | Choose your preferred editor to use when clicking file name.
|
|
57
|
+ |
|
|
58
|
+ | Supported: "phpstorm", "vscode", "vscode-insiders", "vscode-remote",
|
|
59
|
+ | "vscode-insiders-remote", "vscodium", "textmate", "emacs",
|
|
60
|
+ | "sublime", "atom", "nova", "macvim", "idea", "netbeans",
|
|
61
|
+ | "xdebug", "espresso"
|
|
62
|
+ |
|
|
63
|
+ */
|
|
64
|
+
|
|
65
|
+ 'editor' => env('DEBUGBAR_EDITOR') ?: env('IGNITION_EDITOR', 'phpstorm'),
|
|
66
|
+
|
|
67
|
+ /*
|
|
68
|
+ |--------------------------------------------------------------------------
|
|
69
|
+ | Remote Path Mapping
|
|
70
|
+ |--------------------------------------------------------------------------
|
|
71
|
+ |
|
|
72
|
+ | If you are using a remote dev server, like Laravel Homestead, Docker, or
|
|
73
|
+ | even a remote VPS, it will be necessary to specify your path mapping.
|
|
74
|
+ |
|
|
75
|
+ | Leaving one, or both of these, empty or null will not trigger the remote
|
|
76
|
+ | URL changes and Debugbar will treat your editor links as local files.
|
|
77
|
+ |
|
|
78
|
+ | "remote_sites_path" is an absolute base path for your sites or projects
|
|
79
|
+ | in Homestead, Vagrant, Docker, or another remote development server.
|
|
80
|
+ |
|
|
81
|
+ | Example value: "/home/vagrant/Code"
|
|
82
|
+ |
|
|
83
|
+ | "local_sites_path" is an absolute base path for your sites or projects
|
|
84
|
+ | on your local computer where your IDE or code editor is running on.
|
|
85
|
+ |
|
|
86
|
+ | Example values: "/Users/<name>/Code", "C:\Users\<name>\Documents\Code"
|
|
87
|
+ |
|
|
88
|
+ */
|
|
89
|
+
|
|
90
|
+ 'remote_sites_path' => env('DEBUGBAR_REMOTE_SITES_PATH'),
|
|
91
|
+ 'local_sites_path' => env('DEBUGBAR_LOCAL_SITES_PATH', env('IGNITION_LOCAL_SITES_PATH')),
|
|
92
|
+
|
|
93
|
+ /*
|
|
94
|
+ |--------------------------------------------------------------------------
|
|
95
|
+ | Vendors
|
|
96
|
+ |--------------------------------------------------------------------------
|
|
97
|
+ |
|
|
98
|
+ | Vendor files are included by default, but can be set to false.
|
|
99
|
+ | This can also be set to 'js' or 'css', to only include javascript or css vendor files.
|
|
100
|
+ | Vendor files are for css: font-awesome (including fonts) and highlight.js (css files)
|
|
101
|
+ | and for js: jquery and highlight.js
|
|
102
|
+ | So if you want syntax highlighting, set it to true.
|
|
103
|
+ | jQuery is set to not conflict with existing jQuery scripts.
|
|
104
|
+ |
|
|
105
|
+ */
|
|
106
|
+
|
|
107
|
+ 'include_vendors' => true,
|
|
108
|
+
|
|
109
|
+ /*
|
|
110
|
+ |--------------------------------------------------------------------------
|
|
111
|
+ | Capture Ajax Requests
|
|
112
|
+ |--------------------------------------------------------------------------
|
|
113
|
+ |
|
|
114
|
+ | The Debugbar can capture Ajax requests and display them. If you don't want this (ie. because of errors),
|
|
115
|
+ | you can use this option to disable sending the data through the headers.
|
|
116
|
+ |
|
|
117
|
+ | Optionally, you can also send ServerTiming headers on ajax requests for the Chrome DevTools.
|
|
118
|
+ |
|
|
119
|
+ | Note for your request to be identified as ajax requests they must either send the header
|
|
120
|
+ | X-Requested-With with the value XMLHttpRequest (most JS libraries send this), or have application/json as a Accept header.
|
|
121
|
+ |
|
|
122
|
+ | By default `ajax_handler_auto_show` is set to true allowing ajax requests to be shown automatically in the Debugbar.
|
|
123
|
+ | Changing `ajax_handler_auto_show` to false will prevent the Debugbar from reloading.
|
|
124
|
+ |
|
|
125
|
+ | You can defer loading the dataset, so it will be loaded with ajax after the request is done. (Experimental)
|
|
126
|
+ */
|
|
127
|
+
|
|
128
|
+ 'capture_ajax' => true,
|
|
129
|
+ 'add_ajax_timing' => false,
|
|
130
|
+ 'ajax_handler_auto_show' => false,
|
|
131
|
+ 'ajax_handler_enable_tab' => true,
|
|
132
|
+ 'defer_datasets' => false,
|
|
133
|
+ /*
|
|
134
|
+ |--------------------------------------------------------------------------
|
|
135
|
+ | Custom Error Handler for Deprecated warnings
|
|
136
|
+ |--------------------------------------------------------------------------
|
|
137
|
+ |
|
|
138
|
+ | When enabled, the Debugbar shows deprecated warnings for Symfony components
|
|
139
|
+ | in the Messages tab.
|
|
140
|
+ |
|
|
141
|
+ */
|
|
142
|
+ 'error_handler' => false,
|
|
143
|
+
|
|
144
|
+ /*
|
|
145
|
+ |--------------------------------------------------------------------------
|
|
146
|
+ | Clockwork integration
|
|
147
|
+ |--------------------------------------------------------------------------
|
|
148
|
+ |
|
|
149
|
+ | The Debugbar can emulate the Clockwork headers, so you can use the Chrome
|
|
150
|
+ | Extension, without the server-side code. It uses Debugbar collectors instead.
|
|
151
|
+ |
|
|
152
|
+ */
|
|
153
|
+ 'clockwork' => false,
|
|
154
|
+
|
|
155
|
+ /*
|
|
156
|
+ |--------------------------------------------------------------------------
|
|
157
|
+ | DataCollectors
|
|
158
|
+ |--------------------------------------------------------------------------
|
|
159
|
+ |
|
|
160
|
+ | Enable/disable DataCollectors
|
|
161
|
+ |
|
|
162
|
+ */
|
|
163
|
+
|
|
164
|
+ 'collectors' => [
|
|
165
|
+ 'phpinfo' => false, // Php version
|
|
166
|
+ 'messages' => true, // Messages
|
|
167
|
+ 'time' => true, // Time Datalogger
|
|
168
|
+ 'memory' => true, // Memory usage
|
|
169
|
+ 'exceptions' => true, // Exception displayer
|
|
170
|
+ 'log' => true, // Logs from Monolog (merged in messages if enabled)
|
|
171
|
+ 'db' => true, // Show database (PDO) queries and bindings
|
|
172
|
+ 'views' => true, // Views with their data
|
|
173
|
+ 'route' => false, // Current route information
|
|
174
|
+ 'auth' => false, // Display Laravel authentication status
|
|
175
|
+ 'gate' => true, // Display Laravel Gate checks
|
|
176
|
+ 'session' => false, // Display session data
|
|
177
|
+ 'symfony_request' => true, // Only one can be enabled..
|
|
178
|
+ 'mail' => true, // Catch mail messages
|
|
179
|
+ 'laravel' => true, // Laravel version and environment
|
|
180
|
+ 'events' => false, // All events fired
|
|
181
|
+ 'default_request' => false, // Regular or special Symfony request logger
|
|
182
|
+ 'logs' => false, // Add the latest log messages
|
|
183
|
+ 'files' => false, // Show the included files
|
|
184
|
+ 'config' => false, // Display config settings
|
|
185
|
+ 'cache' => false, // Display cache events
|
|
186
|
+ 'models' => true, // Display models
|
|
187
|
+ 'livewire' => true, // Display Livewire (when available)
|
|
188
|
+ 'jobs' => false, // Display dispatched jobs
|
|
189
|
+ 'pennant' => false, // Display Pennant feature flags
|
|
190
|
+ ],
|
|
191
|
+
|
|
192
|
+ /*
|
|
193
|
+ |--------------------------------------------------------------------------
|
|
194
|
+ | Extra options
|
|
195
|
+ |--------------------------------------------------------------------------
|
|
196
|
+ |
|
|
197
|
+ | Configure some DataCollectors
|
|
198
|
+ |
|
|
199
|
+ */
|
|
200
|
+
|
|
201
|
+ 'options' => [
|
|
202
|
+ 'time' => [
|
|
203
|
+ 'memory_usage' => false, // Calculated by subtracting memory start and end, it may be inaccurate
|
|
204
|
+ ],
|
|
205
|
+ 'messages' => [
|
|
206
|
+ 'trace' => true, // Trace the origin of the debug message
|
|
207
|
+ ],
|
|
208
|
+ 'memory' => [
|
|
209
|
+ 'reset_peak' => false, // run memory_reset_peak_usage before collecting
|
|
210
|
+ 'with_baseline' => false, // Set boot memory usage as memory peak baseline
|
|
211
|
+ 'precision' => 0, // Memory rounding precision
|
|
212
|
+ ],
|
|
213
|
+ 'auth' => [
|
|
214
|
+ 'show_name' => true, // Also show the users name/email in the debugbar
|
|
215
|
+ 'show_guards' => true, // Show the guards that are used
|
|
216
|
+ ],
|
|
217
|
+ 'db' => [
|
|
218
|
+ 'with_params' => true, // Render SQL with the parameters substituted
|
|
219
|
+ 'exclude_paths' => [ // Paths to exclude entirely from the collector
|
|
220
|
+ // 'vendor/laravel/framework/src/Illuminate/Session', // Exclude sessions queries
|
|
221
|
+ ],
|
|
222
|
+ 'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
|
|
223
|
+ 'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults)
|
|
224
|
+ 'timeline' => false, // Add the queries to the timeline
|
|
225
|
+ 'duration_background' => true, // Show shaded background on each query relative to how long it took to execute.
|
|
226
|
+ 'explain' => [ // Show EXPLAIN output on queries
|
|
227
|
+ 'enabled' => false,
|
|
228
|
+ ],
|
|
229
|
+ 'hints' => false, // Show hints for common mistakes
|
|
230
|
+ 'show_copy' => true, // Show copy button next to the query,
|
|
231
|
+ 'slow_threshold' => false, // Only track queries that last longer than this time in ms
|
|
232
|
+ 'memory_usage' => false, // Show queries memory usage
|
|
233
|
+ 'soft_limit' => 100, // After the soft limit, no parameters/backtrace are captured
|
|
234
|
+ 'hard_limit' => 500, // After the hard limit, queries are ignored
|
|
235
|
+ ],
|
|
236
|
+ 'mail' => [
|
|
237
|
+ 'timeline' => true, // Add mails to the timeline
|
|
238
|
+ 'show_body' => true,
|
|
239
|
+ ],
|
|
240
|
+ 'views' => [
|
|
241
|
+ 'timeline' => true, // Add the views to the timeline
|
|
242
|
+ 'data' => false, // True for all data, 'keys' for only names, false for no parameters.
|
|
243
|
+ 'group' => 50, // Group duplicate views. Pass value to auto-group, or true/false to force
|
|
244
|
+ 'exclude_paths' => [ // Add the paths which you don't want to appear in the views
|
|
245
|
+ 'vendor/filament', // Exclude Filament components by default
|
|
246
|
+ ],
|
|
247
|
+ ],
|
|
248
|
+ 'route' => [
|
|
249
|
+ 'label' => true, // Show complete route on bar
|
|
250
|
+ ],
|
|
251
|
+ 'session' => [
|
|
252
|
+ 'hiddens' => [], // Hides sensitive values using array paths
|
|
253
|
+ ],
|
|
254
|
+ 'symfony_request' => [
|
|
255
|
+ 'label' => true, // Show route on bar
|
|
256
|
+ 'hiddens' => [], // Hides sensitive values using array paths, example: request_request.password
|
|
257
|
+ ],
|
|
258
|
+ 'events' => [
|
|
259
|
+ 'data' => false, // Collect events data, listeners
|
|
260
|
+ ],
|
|
261
|
+ 'logs' => [
|
|
262
|
+ 'file' => null,
|
|
263
|
+ ],
|
|
264
|
+ 'cache' => [
|
|
265
|
+ 'values' => true, // Collect cache values
|
|
266
|
+ ],
|
|
267
|
+ ],
|
|
268
|
+
|
|
269
|
+ /*
|
|
270
|
+ |--------------------------------------------------------------------------
|
|
271
|
+ | Inject Debugbar in Response
|
|
272
|
+ |--------------------------------------------------------------------------
|
|
273
|
+ |
|
|
274
|
+ | Usually, the debugbar is added just before </body>, by listening to the
|
|
275
|
+ | Response after the App is done. If you disable this, you have to add them
|
|
276
|
+ | in your template yourself. See http://phpdebugbar.com/docs/rendering.html
|
|
277
|
+ |
|
|
278
|
+ */
|
|
279
|
+
|
|
280
|
+ 'inject' => true,
|
|
281
|
+
|
|
282
|
+ /*
|
|
283
|
+ |--------------------------------------------------------------------------
|
|
284
|
+ | Debugbar route prefix
|
|
285
|
+ |--------------------------------------------------------------------------
|
|
286
|
+ |
|
|
287
|
+ | Sometimes you want to set route prefix to be used by Debugbar to load
|
|
288
|
+ | its resources from. Usually the need comes from misconfigured web server or
|
|
289
|
+ | from trying to overcome bugs like this: http://trac.nginx.org/nginx/ticket/97
|
|
290
|
+ |
|
|
291
|
+ */
|
|
292
|
+ 'route_prefix' => '_debugbar',
|
|
293
|
+
|
|
294
|
+ /*
|
|
295
|
+ |--------------------------------------------------------------------------
|
|
296
|
+ | Debugbar route middleware
|
|
297
|
+ |--------------------------------------------------------------------------
|
|
298
|
+ |
|
|
299
|
+ | Additional middleware to run on the Debugbar routes
|
|
300
|
+ */
|
|
301
|
+ 'route_middleware' => [],
|
|
302
|
+
|
|
303
|
+ /*
|
|
304
|
+ |--------------------------------------------------------------------------
|
|
305
|
+ | Debugbar route domain
|
|
306
|
+ |--------------------------------------------------------------------------
|
|
307
|
+ |
|
|
308
|
+ | By default Debugbar route served from the same domain that request served.
|
|
309
|
+ | To override default domain, specify it as a non-empty value.
|
|
310
|
+ */
|
|
311
|
+ 'route_domain' => null,
|
|
312
|
+
|
|
313
|
+ /*
|
|
314
|
+ |--------------------------------------------------------------------------
|
|
315
|
+ | Debugbar theme
|
|
316
|
+ |--------------------------------------------------------------------------
|
|
317
|
+ |
|
|
318
|
+ | Switches between light and dark theme. If set to auto it will respect system preferences
|
|
319
|
+ | Possible values: auto, light, dark
|
|
320
|
+ */
|
|
321
|
+ 'theme' => env('DEBUGBAR_THEME', 'auto'),
|
|
322
|
+
|
|
323
|
+ /*
|
|
324
|
+ |--------------------------------------------------------------------------
|
|
325
|
+ | Backtrace stack limit
|
|
326
|
+ |--------------------------------------------------------------------------
|
|
327
|
+ |
|
|
328
|
+ | By default, the Debugbar limits the number of frames returned by the 'debug_backtrace()' function.
|
|
329
|
+ | If you need larger stacktraces, you can increase this number. Setting it to 0 will result in no limit.
|
|
330
|
+ */
|
|
331
|
+ 'debug_backtrace_limit' => 50,
|
|
332
|
+];
|