forked from eturino/Util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXDebug.php
37 lines (30 loc) · 967 Bytes
/
XDebug.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
class EtuDev_Util_XDebug
{
static public function setVarDumpNormalDepth()
{
ini_set('xdebug.var_display_max_depth', 3);
}
static public function setVarDumpHighDepth()
{
ini_set('xdebug.var_display_max_depth', 5);
ini_set('xdebug.var_display_max_data', 10240);
ini_set('xdebug.var_display_max_children', 10240);
}
static public function setVarDumpHigherDepth()
{
ini_set('xdebug.var_display_max_depth', 9);
ini_set('xdebug.var_display_max_data', 10240);
ini_set('xdebug.var_display_max_children', 10240);
}
static public function setVarDumpHighestDepth()
{
ini_set('xdebug.var_display_max_depth', 15);
ini_set('xdebug.var_display_max_data', 10240);
ini_set('xdebug.var_display_max_children', 10240);
}
static public function setVarDumpDepth($depth = 3)
{
ini_set('xdebug.var_display_max_depth', $depth);
}
}