Last active
October 29, 2019 04:54
-
-
Save MaxwellRU/359bbd7300b9c4ad9473d93e10c79bc0 to your computer and use it in GitHub Desktop.
Функция debug для Битрикс
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?function debug($var, $die = false, $all = false) { | |
global $USER; | |
if( $USER->IsAdmin() || $all == true ) { ?> | |
<font style="text-align: left; font-size: 9px;line-height: 1;display:block;clear:both"><pre><?print_r($var)?></pre></font> | |
<? } if($die) { | |
die; | |
} | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment