Exemple #1
0
 public static function varDump($var, $exit = false)
 {
     self::addDebugStyles();
     self::$pvOutput = '';
     self::$pvObjects = array();
     self::dumper($var, 0);
     $debugString = '
 	<div class="ow_debug_cont">
 		<div class="ow_debug_body">
 			<div class="ow_debug_cap vardump">OW Debug - Vardump</div>
 			<div>
 				<pre class="vardumper">' . self::$pvOutput . "\n\n" . '<b>Type:</b> <span style="color:red;">' . ucfirst(gettype($var)) . "</span>" . '
 				</pre>
 			</div>
 		</div>
 	</div>
 	';
     echo $debugString;
     if ($exit) {
         exit;
     }
 }