Skip to content

Commit 9ee33d5

Browse files
authored
Merge pull request #1030 from mentisy/debugkit-config
Add description to DebugKit configuration options
2 parents 2011746 + 7aa3449 commit 9ee33d5

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

config/app.php

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,33 @@
412412
'Session' => [
413413
'defaults' => 'php',
414414
],
415+
416+
/**
417+
* DebugKit configuration.
418+
*
419+
* Contains an array of configurations to apply to the DebugKit plugin, if loaded.
420+
* Documentation: https://book.cakephp.org/debugkit/5/en/index.html#configuration
421+
*
422+
* ## Options
423+
*
424+
* - `panels` - Enable or disable panels. The key is the panel name, and the value is true to enable,
425+
* or false to disable.
426+
* - `includeSchemaReflection` - Set to true to enable logging of schema reflection queries. Disabled by default.
427+
* - `safeTld` - Set an array of whitelisted TLDs for local development.
428+
* - `forceEnable` - Force DebugKit to display. Careful with this, it is usually safer to simply whitelist
429+
* your local TLDs.
430+
* - `ignorePathsPattern` - Regex pattern (including delimiter) to ignore paths.
431+
* DebugKit won’t save data for request URLs that match this regex.
432+
* - `ignoreAuthorization` - Set to true to ignore Cake Authorization plugin for DebugKit requests.
433+
* Disabled by default.
434+
* - `maxDepth` - Defines how many levels of nested data should be shown in general for debug output.
435+
* Default is 5. WARNING: Increasing the max depth level can lead to an out of memory error.
436+
* - `variablesPanelMaxDepth` - Defines how many levels of nested data should be shown in the variables tab.
437+
* Default is 5. WARNING: Increasing the max depth level can lead to an out of memory error.
438+
*/
415439
'DebugKit' => [
416440
'forceEnable' => filter_var(env('DEBUG_KIT_FORCE_ENABLE', false), FILTER_VALIDATE_BOOLEAN),
417441
'safeTld' => env('DEBUG_KIT_SAFE_TLD', null),
418-
'ignoreAuthorization' => env('DEBUG_KIT_IGNORE_AUTHORIZATION', false)
442+
'ignoreAuthorization' => env('DEBUG_KIT_IGNORE_AUTHORIZATION', false),
419443
],
420444
];

0 commit comments

Comments
 (0)