File: D:/HostingSpaces/RDamen/damenbeletteringen.nl/wwwroot/admin/system/cms/helpers/debug_helper.php
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* CodeIgniter Debug Helpers
*
* @author PyroCMS Dev Team
* @copyright Copyright (c) 2012, PyroCMS LLC
* @package PyroCMS\Core\Helpers
*/
/**
* Debug Helper
*
* Outputs the given variable with formatting and location
*/
function dump()
{
list($callee) = debug_backtrace();
$arguments = $callee['args'];
$total_arguments = count($arguments);
echo '<fieldset style="background: #fefefe !important; border:2px red solid; padding:5px">';
echo '<legend style="background:lightgrey; padding:5px;">'.$callee['file'].' @ line: '.$callee['line'].'</legend><pre>';
$i = 0;
foreach ($arguments as $argument)
{
echo '<br/><strong>Debug #'.(++$i).' of '.$total_arguments.'</strong>: ';
var_dump($argument);
}
echo '</pre>';
echo '</fieldset>';
}