File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ class Debugger
36
36
/** in production mode is suppressed any debugging output */
37
37
public static ?bool $ productionMode = self ::DETECT ;
38
38
39
+ /** barDumps can be disabled or enabled on demand */
40
+ public static bool $ barDumpOn = true ;
41
+
39
42
/** whether to display debug bar in development mode */
40
43
public static bool $ showBar = true ;
41
44
@@ -535,7 +538,7 @@ public static function timer(?string $name = null): float
535
538
*/
536
539
public static function barDump (mixed $ var , ?string $ title = null , array $ options = []): mixed
537
540
{
538
- if (!self ::$ productionMode ) {
541
+ if (!self ::$ productionMode && self :: $ barDumpOn ) {
539
542
static $ panel ;
540
543
if (!$ panel ) {
541
544
self ::getBar ()->addPanel ($ panel = new DefaultBarPanel ('dumps ' ), 'Tracy:dumps ' );
You can’t perform that action at this time.
0 commit comments